update
This commit is contained in:
5
run.sh
5
run.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user