Update run.sh
This commit is contained in:
parent
6c70a7ef59
commit
8059c8789c
4
run.sh
4
run.sh
@ -29,14 +29,14 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
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
|
if test -z $latest_commit; then
|
||||||
sleep $delay
|
sleep $delay
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git reset --hard >> $log 2>&1
|
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
|
if [ $? -ne 0 ]; then
|
||||||
echo "Git checkout failed. For more details, see $log"
|
echo "Git checkout failed. For more details, see $log"
|
||||||
sleep $delay
|
sleep $delay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user