Update run.sh
This commit is contained in:
parent
8d513d9989
commit
fcc956be4a
22
run.sh
22
run.sh
@ -37,19 +37,15 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $current_commit == $latest_commit ]; then
|
if [ $current_commit != $latest_commit ]; then
|
||||||
# Latest commit isn't different than the current one
|
echo "Checking out $latest_commit..."
|
||||||
sleep $delay
|
git reset --hard >> /dev/null
|
||||||
continue
|
git checkout $latest_commit -f
|
||||||
fi
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Git checkout failed."
|
||||||
echo "Checking out $latest_commit..."
|
sleep $delay
|
||||||
git reset --hard
|
continue
|
||||||
git checkout $latest_commit -f
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Git checkout failed."
|
|
||||||
sleep $delay
|
|
||||||
continue
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checkout_version=`cat version`
|
checkout_version=`cat version`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user