Update run.sh
This commit is contained in:
parent
6c70a7ef59
commit
8059c8789c
4
run.sh
4
run.sh
@ -29,14 +29,14 @@ do
|
||||
continue
|
||||
fi
|
||||
|
||||
latest_commit=`git log "--format=%G? %H" | grep ^G | head -n 1 | cut -d' ' -f2`
|
||||
latest_commit=`git log "--format=%G? %H" origin/master | grep ^G | head -n 1 | cut -d' ' -f2`
|
||||
if test -z $latest_commit; then
|
||||
sleep $delay
|
||||
continue
|
||||
fi
|
||||
|
||||
git reset --hard >> $log 2>&1
|
||||
git checkout $latest_commit >> $log 2>&1
|
||||
git checkout $latest_commit -f >> $log 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Git checkout failed. For more details, see $log"
|
||||
sleep $delay
|
||||
|
Loading…
x
Reference in New Issue
Block a user