Commit 59d655c5 by James Cammarata

Double echo temp directory name to handle spaces and ~ expansion both

Fixes #12667
parent d1b98ec7
......@@ -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 "%s"' % basetmp
cmd += ' && 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`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment