1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

expanduser() on dest

This commit is contained in:
Ben Doherty 2016-06-01 09:07:18 -04:00 committed by Matt Clay
parent 51ab6cdc0d
commit 0380006e00

View file

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