Skip to content

Commit

Permalink
Fix npm backup overwriting pip3 backup (#285)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Coutinho <coutint@amazon.com>
  • Loading branch information
tim-coutinho and Tim Coutinho committed Dec 17, 2020
1 parent 196e846 commit dd765f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shallow_backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def run_cmd_if_no_dry_run(command, dest, dry_run) -> int:
command = "npm ls --global --parseable=true --depth=0"
temp_file_path = f"{backup_path}/npm_temp_list.txt"
# If command is successful, go to the next parsing step.
npm_backup_cmd_success = run_cmd_if_no_dry_run(command, dest, dry_run) == 0
npm_backup_cmd_success = run_cmd_if_no_dry_run(command, temp_file_path, dry_run) == 0
if npm_backup_cmd_success:
npm_dest_file = f"{backup_path}/npm_list.txt"
# Parse npm output
Expand Down

0 comments on commit dd765f7

Please sign in to comment.