diff --git a/run.sh b/run.sh index f16e990d..2d70a51f 100755 --- a/run.sh +++ b/run.sh @@ -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