From ebabbea04473cf4eebee57996c9cc210ad2fd203 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Wed, 22 Oct 2025 16:57:49 +1000 Subject: fix: Handle missing scripts gracefully in update.sh chmod --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update.sh') diff --git a/update.sh b/update.sh index 2b21a77..ab0562d 100755 --- a/update.sh +++ b/update.sh @@ -67,7 +67,7 @@ update_scripts() { sudo cp restic_backup.sh "$install_dir/" sudo cp restic_check.sh "$install_dir/" sudo cp common.sh "$install_dir/" - sudo chmod +x "$install_dir/restic_*.sh" "$install_dir/common.sh" + sudo chmod +x "$install_dir/restic_backup.sh" "$install_dir/restic_check.sh" "$install_dir/common.sh" else install_dir="$HOME/.local/bin" mkdir -p "$install_dir" @@ -75,7 +75,7 @@ update_scripts() { cp restic_backup.sh "$install_dir/" cp restic_check.sh "$install_dir/" cp common.sh "$install_dir/" - chmod +x "$install_dir/restic_*.sh" "$install_dir/common.sh" + chmod +x "$install_dir/restic_backup.sh" "$install_dir/restic_check.sh" "$install_dir/common.sh" fi } -- cgit v1.2.3