Update run.sh

This commit is contained in:
2019-11-24 18:35:56 -06:00
parent 436041975f
commit e835e12619

9
run.sh
View File

@@ -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 ""