fixing too many arguments
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 22s

This commit is contained in:
2025-07-26 22:15:42 -03:00
parent f851a95bdf
commit b54fcffb66

View File

@@ -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 </dev/tty
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
install_log_info "Removing $file"