Update run.sh
This commit is contained in:
parent
18f4440487
commit
8d513d9989
7
run.sh
7
run.sh
@ -37,6 +37,13 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $current_commit == $latest_commit ]; then
|
||||||
|
# Latest commit isn't different than the current one
|
||||||
|
sleep $delay
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Checking out $latest_commit..."
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git checkout $latest_commit -f
|
git checkout $latest_commit -f
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user