mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
expanduser() on dest
This commit is contained in:
@@ -157,7 +157,9 @@ def main():
|
||||
|
||||
# Default created file name (for single-file archives) to
|
||||
# <file>.<compression>
|
||||
if not archive and not dest:
|
||||
if dest:
|
||||
dest = os.path.expanduser(dest)
|
||||
elif not archive:
|
||||
dest = '%s.%s' % (expanded_paths[0], compression)
|
||||
|
||||
# Force archives to specify 'dest'
|
||||
|
||||
Reference in New Issue
Block a user