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