Update run.sh
This commit is contained in:
4
run.sh
4
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/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
|
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
||||||
goforup=0
|
goforup=0
|
||||||
if [ "$(${NM_SCRIPT} betacheck)" == "true" ]; then
|
if [ "$(${NM_SCRIPT} betacheck)" == "true" ] && [ "${2}" != "q" ]; then
|
||||||
echo -en "\e[1A";
|
echo -en "\e[1A";
|
||||||
echo -en "\e[0K\r${idsCL[LightCyan]}This update is currently in BETA, proceed (N/y)? ${idsCL[Default]}"
|
echo -en "\e[0K\r${idsCL[LightCyan]}This update is currently in BETA, proceed (N/y)? ${idsCL[Default]}"
|
||||||
read -n1 choice
|
read -n1 choice
|
||||||
case $choice in
|
case $choice in
|
||||||
[Yy]) goforup=1;;
|
[Yy]) goforup=1;;
|
||||||
esac
|
esac
|
||||||
|
elif [ "$(${NM_SCRIPT} betacheck)" == "true" ] && [ "${2}" == "q" ]; then
|
||||||
|
goforup=0
|
||||||
else
|
else
|
||||||
goforup=1
|
goforup=1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user