From 47f4324894a89ccfb4e8de270d822e6da09ef85c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 10 Feb 2024 15:32:16 -0600 Subject: [PATCH] Update run.sh --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 04ddcf7..37fb032 100755 --- a/run.sh +++ b/run.sh @@ -40,7 +40,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP cd /opt/idssys/linupx if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then if [ "${1}" != "runup" ]; then - [ ${udtd} -eq 1 ] && echo -en "\e[1A"; + [ ${udtd} -eq 0 ] && echo -en "\e[1A"; echo -en "\e[0K\r${idsCL[LightCyan]}Updating LinUPx...${idsCL[Default]}" fi git fetch origin master >/dev/null 2>&1 @@ -57,7 +57,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP echo -e " ${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}" fi elif [ "${1}" != "runup" ]; then - [ ${udtd} -eq 1 ] && echo -en "\e[1A" + [ ${udtd} -eq 0 ] && echo -en "\e[1A" echo -e "\e[0K\r ${idsCL[Green]}No updates available${idsCL[Default]}" echo "" fi