No need to expanduser() command's chdir argument twice

reviewable/pr18780/r1
Stoned Elipot 12 years ago
parent 2a479cca52
commit 85529d4022

@ -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

Loading…
Cancel
Save