Commit 0c03a5cf by Michael DeHaan

Merge pull request #3049 from stoned/cmd-expanduser-once

No need to expanduser() command's chdir argument twice
parents 27640de0 f9cff3c4
...@@ -95,7 +95,7 @@ def main(): ...@@ -95,7 +95,7 @@ def main():
module.fail_json(rc=256, msg="no command given") module.fail_json(rc=256, msg="no command given")
if chdir: if chdir:
os.chdir(os.path.expanduser(chdir)) os.chdir(chdir)
if creates: if creates:
# do not run the command if the line contains creates=filename # do not run the command if the line contains creates=filename
......
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