mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
switched to backticks to allow for non bourne shells to work
This commit is contained in:
parent
27dc7e11a4
commit
b8bc15fe02
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ class ShellModule(object):
|
|||
basetmp = self.join_path(C.DEFAULT_REMOTE_TMP, basefile)
|
||||
if system and (basetmp.startswith('$HOME') or basetmp.startswith('~/')):
|
||||
basetmp = self.join_path('/tmp', basefile)
|
||||
cmd = 'mkdir -p "$(echo %s)"' % basetmp
|
||||
cmd += ' && echo "$(echo %s)"' % basetmp
|
||||
cmd = 'mkdir -p "`echo %s`"' % basetmp
|
||||
cmd += ' && echo "`echo %s`"' % basetmp
|
||||
|
||||
# change the umask in a subshell to achieve the desired mode
|
||||
# also for directories created with `mkdir -p`
|
||||
|
|
Loading…
Reference in a new issue