From e835e1261929327a898a39a3f1708b862576f28e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Nov 2019 18:35:56 -0600 Subject: [PATCH] Update run.sh --- run.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index fd2d203..c146309 100755 --- a/run.sh +++ b/run.sh @@ -8,8 +8,11 @@ else fi source /opt/idssys/defaults/colors.inc -echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}" -echo "" +if [ "${1}" != "runup" ]; then + echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}" + echo "" +fi + cd /opt/idssys/defaults if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then git fetch origin master >/dev/null 2>&1 @@ -36,7 +39,7 @@ if [ "$1" != "update" ] && [ "$1" != "up" ]; then git pull >/dev/null 2>&1 fi fi -if ["${1}" != "runup" ]; then +if [ "${1}" != "runup" ]; then echo -en "\e[1A"; echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}" echo ""