commit 996881aef184246a011ac29382e91d634cda7b65 parent 4b4248157a400200387cb521606c90f1fb6ebe2f Author: earthlng <earthlng@users.noreply.github.com> Date: Sun, 24 Jul 2022 13:11:28 +0000 Update updater.sh Diffstat:
| M | updater.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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"