mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
set checkout destination directory to be full path
we chdir into this path and read the playbook/inventory if a non-absolute path is given on the command line, that will fail
This commit is contained in:
@@ -116,6 +116,8 @@ def main(args):
|
|||||||
parser.error("Missing required directory argument")
|
parser.error("Missing required directory argument")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
options.dest = os.path.abspath(options.dest)
|
||||||
|
|
||||||
if not options.url:
|
if not options.url:
|
||||||
parser.error("URL for git repo not specified, use -h for help")
|
parser.error("URL for git repo not specified, use -h for help")
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user