1
0
Fork 0

Update updater.sh

This commit is contained in:
earthlng 2022-07-24 13:11:28 +00:00 committed by GitHub
parent 4b4248157a
commit 996881aef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"