Update run.sh
This commit is contained in:
9
run.sh
9
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 ""
|
||||
|
||||
Reference in New Issue
Block a user