Update updater.sh
This commit is contained in:
parent
4b4248157a
commit
996881aef1
@ -195,10 +195,10 @@ update_updater() {
|
|||||||
echo -e "There is a newer version of updater.sh available. ${RED}Update and execute Y/N?${NC}"
|
echo -e "There is a newer version of updater.sh available. ${RED}Update and execute Y/N?${NC}"
|
||||||
read -p "" -n 1 -r
|
read -p "" -n 1 -r
|
||||||
echo -e "\n\n"
|
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
|
fi
|
||||||
else
|
else
|
||||||
return 0 # No update available
|
return 0 # No update available
|
||||||
fi
|
fi
|
||||||
mv "${tmpfile}" "$SCRIPT_FILE"
|
mv "${tmpfile}" "$SCRIPT_FILE"
|
||||||
chmod u+x "$SCRIPT_FILE"
|
chmod u+x "$SCRIPT_FILE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user