From b54fcffb66120077f2d5ff0d8314bccb1e9938c7 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sat, 26 Jul 2025 22:15:42 -0300 Subject: [PATCH] fixing too many arguments --- nas-gdrive-backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nas-gdrive-backup.sh b/nas-gdrive-backup.sh index fc729f9..6a9bc33 100644 --- a/nas-gdrive-backup.sh +++ b/nas-gdrive-backup.sh @@ -241,8 +241,8 @@ install_script() { # Check for existing .sha256 files, if there are any, prompt to remove them install_log_info "Verifying existing .sha256 files in $META_DIR" for file in "$META_DIR"/*; do - if [ -f "$file" -a -name "*.sha256" ]; then - install_log_info "Found .sha256 file: $file" + if [ -f "$file" ] && [[ "$file" == *.sha256 ]]; then + install_log_info "Found .sha256 file: \e[96m\e[4m$file\e[0m" read -p "Do you want to remove this file? [y/N]: " choice