From 996881aef184246a011ac29382e91d634cda7b65 Mon Sep 17 00:00:00 2001 From: earthlng Date: Sun, 24 Jul 2022 13:11:28 +0000 Subject: [PATCH] Update updater.sh --- updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater.sh b/updater.sh index b36cc2a..bf275c5 100755 --- a/updater.sh +++ b/updater.sh @@ -195,10 +195,10 @@ update_updater() { echo -e "There is a newer version of updater.sh available. ${RED}Update and execute Y/N?${NC}" read -p "" -n 1 -r echo -e "\n\n" - ! [[ $REPLY =~ ^[Yy]$ ]] && return 0 # Update available, but user chooses not to update + [[ $REPLY =~ ^[Yy]$ ]] || return 0 # Update available, but user chooses not to update fi else - return 0 # No update available + return 0 # No update available fi mv "${tmpfile}" "$SCRIPT_FILE" chmod u+x "$SCRIPT_FILE"