mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3049 from stoned/cmd-expanduser-once
No need to expanduser() command's chdir argument twice
This commit is contained in:
commit
0c03a5cfc2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue