This commit is contained in:
2023-12-03 23:09:40 -06:00
parent 0fd8eb07fa
commit bec73d745c
3 changed files with 6 additions and 5 deletions

5
run.sh
View File

@@ -34,14 +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" ] && [ "${2}" != "q" ]; then
betacheck=$(${NM_SCRIPT} betacheck)
if [ "${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]) echo; goforup=1;;
esac
elif [ "$(${NM_SCRIPT} betacheck)" == "true" ] && [ "${2}" == "q" ]; then
elif [ "${betacheck}" == "true" ] && [ "${2}" == "q" ]; then
goforup=0
else
goforup=1