mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #3049 from stoned/cmd-expanduser-once
No need to expanduser() command's chdir argument twice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user