Update run.sh

This commit is contained in:
Manevolent 2022-12-17 01:24:52 -07:00 committed by GitHub
parent 665c8bcd1b
commit eaf5ff4f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
run.sh
View File

@ -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