From e1fbc50f566871829bc124203473c404a0d7eecd Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 26 May 2025 16:42:42 +0200 Subject: [PATCH] change warn restore deletion mode --- restore | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/restore b/restore index ad34972..e53cd28 100755 --- a/restore +++ b/restore @@ -73,9 +73,6 @@ restore() local restore_path="$restore_prefix_path$path" local remote_path="$remote_user@$remote_machine:$path" - [ "$origin" == "deletemode-on" ] \ - && deletemode="--delete" \ - && echo "ℹ️ INFO: delete mode on" local mode="directory" [[ "$path" =~ /$ ]] || mode="file" @@ -91,6 +88,10 @@ restore() echo "ℹ️ INFO: remote path $remote_path" echo + [ "$origin" == "deletemode-on" ] \ + && deletemode="--delete" \ + && echo "⚠️ WARN: delete mode on" && echo + local ask_restore="N" read -p "❓ QUESTION: Do you want restore? [N/y] " ask_restore local ask_restore=${ask_restore:-N} -- 2.39.5