mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Revert expanding hte tilde in shell plugin until we determine why it's forcing fetch down an alternate path
This commit is contained in:
parent
cfe9f1c32f
commit
3ccb0b8243
1 changed files with 3 additions and 3 deletions
|
@ -37,12 +37,12 @@ class ShellModule(object):
|
||||||
return path.endswith('/')
|
return path.endswith('/')
|
||||||
|
|
||||||
def chmod(self, mode, path):
|
def chmod(self, mode, path):
|
||||||
path = os.path.expanduser(path)
|
#path = os.path.expanduser(path)
|
||||||
path = pipes.quote(path)
|
path = pipes.quote(path)
|
||||||
return 'chmod %s %s' % (mode, path)
|
return 'chmod %s %s' % (mode, path)
|
||||||
|
|
||||||
def remove(self, path, recurse=False):
|
def remove(self, path, recurse=False):
|
||||||
path = os.path.expanduser(path)
|
#path = os.path.expanduser(path)
|
||||||
path = pipes.quote(path)
|
path = pipes.quote(path)
|
||||||
if recurse:
|
if recurse:
|
||||||
return "rm -rf %s >/dev/null 2>&1" % path
|
return "rm -rf %s >/dev/null 2>&1" % path
|
||||||
|
@ -62,7 +62,7 @@ class ShellModule(object):
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
def checksum(self, path, python_interp):
|
def checksum(self, path, python_interp):
|
||||||
path = os.path.expanduser(path)
|
#path = os.path.expanduser(path)
|
||||||
path = pipes.quote(path)
|
path = pipes.quote(path)
|
||||||
# The following test needs to be SH-compliant. BASH-isms will
|
# The following test needs to be SH-compliant. BASH-isms will
|
||||||
# not work if /bin/sh points to a non-BASH shell.
|
# not work if /bin/sh points to a non-BASH shell.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue