Update run.sh

This commit is contained in:
2019-01-30 01:32:55 -06:00
parent 3975bc6aa1
commit 47b536cd80

2
run.sh
View File

@@ -8,7 +8,7 @@ fi
cd /opt/idssys/mysqlbu
#echo ""
if [ "$1" != "backup" ]; then
if [ "$1" != "backup22" ]; then
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