Update run.sh

This commit is contained in:
2019-01-27 17:06:22 -06:00
parent 0ee61e933e
commit 4bd1e1a7e3

2
run.sh
View File

@@ -4,7 +4,7 @@
source /opt/idssys/nodemgmt/settings.conf
#echo ""
if [ "$1" != "backup" ]; then
cd /opt/idssys/defauts
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
git reset --hard origin/master >/dev/null 2>&1