From ffe889c8e255766aa40a76faa995084e217e8017 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 24 May 2025 10:49:52 +0200 Subject: [PATCH] show restore mode --- restore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/restore b/restore index 04e33ce..b37ef76 100755 --- a/restore +++ b/restore @@ -48,7 +48,11 @@ restore() local restore_path="$backup_root/$backup_dir/$remote_machine$path" local remote_path="$remote_user@$remote_machine:$path" - echo "ℹ️ HINT: restore folder must path end with slash" + local mode="directory" + + [[ "$path" =~ /$ ]] || mode="file" + + echo "ℹ️ INFO: restore mode $mode" echo echo "ℹ️ INFO: restore path $restore_path" -- 2.47.3