Skip to content

Commit bd246c2

Browse files
committed
Update root-path after options evaluation
1 parent d6c2467 commit bd246c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fopus-beta.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,8 @@ fopus_main()
392392
declare -a list_clean
393393

394394
origins_path="$(pwd -P)"
395-
root_path="${fopus_config[root-path]}"
396395
gpg_key_id="${fopus_config[default-key]}"
397396

398-
399397
user_answer=""
400398
if [[ "$UID" -eq 0 ]]; then
401399
echo -n "fopus: user is root. Continue? [y/N]: "
@@ -413,6 +411,8 @@ fopus_main()
413411
evaluate_options "${list_args[@]}"
414412
filter_evaluate_files
415413

414+
root_path="${fopus_config[root-path]}"
415+
416416
if [[ "$root_path" =~ ^"$HOME"/?$ ]]; then
417417
root_path="$HOME/Backups"
418418
fi

0 commit comments

Comments
 (0)