Fix missing expanduser on chdir value
This commit is contained in:
parent
6a63f2a6ba
commit
76c6a53274
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ def main():
|
|||
module.fail_json(rc=256, msg="no command given")
|
||||
|
||||
if chdir:
|
||||
chdir = os.path.abspath(os.path.expanduser(chdir))
|
||||
os.chdir(chdir)
|
||||
|
||||
if creates:
|
||||
|
|
Loading…
Reference in a new issue