No need to expanduser() command's chdir argument twice
This commit is contained in:
parent
f9a14f0d70
commit
f9cff3c444
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def main():
|
|||
module.fail_json(rc=256, msg="no command given")
|
||||
|
||||
if chdir:
|
||||
os.chdir(os.path.expanduser(chdir))
|
||||
os.chdir(chdir)
|
||||
|
||||
if creates:
|
||||
# do not run the command if the line contains creates=filename
|
||||
|
|
Loading…
Reference in a new issue