Update run.sh

This commit is contained in:
2019-01-28 00:41:30 -06:00
parent 1b629acb78
commit 111979c9ed

4
run.sh
View File

@@ -13,7 +13,9 @@ echo -e "Node hostname: ${node_hostname}"
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
echo ""
if [ "$1" != "service" ]; then
if [ "$1" != "service2" ]; then
echo -e "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
echo ""
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