Update run.sh

This commit is contained in:
2023-12-03 21:17:09 -06:00
parent cf278af0a5
commit 6ec9007428

4
run.sh
View File

@@ -34,13 +34,15 @@ if [ "${1}" == "update" ]; then
# if [ "`git log --pretty=%H ...refs/heads/dev^ | head -n 1`" != "`git ls-remote origin -h refs/heads/dev |cut -f1`" ]; then
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
goforup=0
if [ "$(${NM_SCRIPT} betacheck)" == "true" ]; then
if [ "$(${NM_SCRIPT} betacheck)" == "true" ] && [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -en "\e[0K\r${idsCL[LightCyan]}This update is currently in BETA, proceed (N/y)? ${idsCL[Default]}"
read -n1 choice
case $choice in
[Yy]) goforup=1;;
esac
elif [ "$(${NM_SCRIPT} betacheck)" == "true" ] && [ "${2}" == "q" ]; then
goforup=0
else
goforup=1
fi