From afa7e7b5c3fe906127418e4c683f838259a11bfb Mon Sep 17 00:00:00 2001 From: Tim Coutinho Date: Fri, 25 Dec 2020 21:56:59 -0700 Subject: [PATCH] Ruby refactor --- shallow_backup/backup.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/shallow_backup/backup.py b/shallow_backup/backup.py index 091e6ed9..fc2117ff 100644 --- a/shallow_backup/backup.py +++ b/shallow_backup/backup.py @@ -138,12 +138,11 @@ def run_cmd_if_no_dry_run(command, dest, dry_run) -> int: if not dry_run: overwrite_dir_prompt_if_needed(backup_path, skip) - for mgr in ["gem"]: - # deal with package managers that have spaces in them. - print_pkg_mgr_backup(mgr) - command = f"{mgr} list" - dest = f"{backup_path}/{mgr.replace(' ', '-')}_list.txt" - run_cmd_if_no_dry_run(command, dest, dry_run) + # ruby + print_pkg_mgr_backup(mgr) + command = f"{mgr} list" + dest = f"{backup_path}/{mgr.replace(' ', '-')}_list.txt" + run_cmd_if_no_dry_run(command, dest, dry_run) # brew print_pkg_mgr_backup("brew")