mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Guard against a shell profile printing extraneous data
This commit is contained in:
parent
4d59779e0a
commit
1cee3f35b1
3 changed files with 10 additions and 9 deletions
|
@ -134,7 +134,7 @@ class ShellBase(object):
|
|||
basetmp = self.join_path(basetmpdir, basefile)
|
||||
|
||||
cmd = 'mkdir -p %s echo %s %s' % (self._SHELL_SUB_LEFT, basetmp, self._SHELL_SUB_RIGHT)
|
||||
cmd += ' %s echo %s echo %s %s' % (self._SHELL_AND, self._SHELL_SUB_LEFT, basetmp, self._SHELL_SUB_RIGHT)
|
||||
cmd += ' %s echo %s=%s echo %s %s' % (self._SHELL_AND, basefile, self._SHELL_SUB_LEFT, basetmp, self._SHELL_SUB_RIGHT)
|
||||
|
||||
# change the umask in a subshell to achieve the desired mode
|
||||
# also for directories created with `mkdir -p`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue