Update run.sh
This commit is contained in:
parent
665c8bcd1b
commit
eaf5ff4f10
4
run.sh
4
run.sh
@ -46,12 +46,12 @@ do
|
||||
checkout_version=`cat version`
|
||||
if [ "$checkout_version" -gt "$current_version" ]; then
|
||||
echo "Updating to version $checkout_version..."
|
||||
chmod +x build.sh && ./build.sh >> $log 2>&1
|
||||
chmod +x build.sh && ./build.sh
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Update completed successfully."
|
||||
echo $checkout_version > $version_file
|
||||
else
|
||||
echo "Update failed; version was not updated. Trying again in $delay seconds. For more details, see $log"
|
||||
echo "Update failed; version was not updated. Trying again in $delay seconds."
|
||||
sleep $delay
|
||||
continue
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user