From d6ab899df5d5ae378d9907db06379c2d027a4439 Mon Sep 17 00:00:00 2001 From: Ian Gregory Date: Wed, 22 Apr 2020 22:23:27 -0400 Subject: [PATCH] Allow setting backup path to ~/.shallow-backup (if it's a directory, it can't be a config file to migrate.) --- shallow_backup/upgrade.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/shallow_backup/upgrade.py b/shallow_backup/upgrade.py index 069ad572..517e1ade 100644 --- a/shallow_backup/upgrade.py +++ b/shallow_backup/upgrade.py @@ -41,9 +41,6 @@ def upgrade_from_pre_v3(): else: print_red_bold("Please downgrade to a version of shallow-backup before v3.0 if you do not want to upgrade your config.") sys.exit() - elif os.path.isdir(old_config_path): - print_red_bold(f"ERROR: {old_config_path} is a directory, when we were expecting a file. Manual intervention is required.") - sys.exit(1) # Clean up ~/.config/shallow-backup incorrect_config_dir = os.path.join(get_xdg_config_path(), "shallow-backup")