Skip to content

Commit

Permalink
Merge pull request #284 from Tecnativa/fix-multi-full
Browse files Browse the repository at this point in the history
[FIX] multi full
  • Loading branch information
Tardo authored Jun 28, 2022
2 parents d032d42 + 5fc03cf commit d29fbde
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/dup
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ def _unset_env(index):
os.unsetenv(target_env_name)


is_multi_mode = len(sys.argv) > 2 and sys.argv[2] == "multi" or False
len_argv = len(sys.argv)
is_multi_mode = (
(len_argv > 2 and sys.argv[2] == "multi")
or (len_argv > 3 and sys.argv[3] == "multi")
or False
)
if is_multi_mode:
print("Multi-destination mode enabled")
is_restore = sys.argv[1] == "restore"
Expand Down

0 comments on commit d29fbde

Please sign in to comment.