Updated Swamp installer and update script.

This commit is contained in:
Storm Dragon
2022-01-15 05:17:38 -05:00
parent 831d4b6a59
commit 42835dc2a9
2 changed files with 7 additions and 7 deletions

View File

@ -37,10 +37,11 @@
# Works which are defined in the CPAL as a work which combines Covered Code
# or portions thereof with code not governed by the terms of the CPAL.
updateURL="https://www.kaldobsky.com/audiogames/SwampPatch.zip"
cache="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/cache"
updateURL="https://www.kaldobsky.com/audiogames/Swamp.zip"
extract_error() {
echo "There was an error extracting the patch."
echo "There was an error extracting the zip file."
exit 1
}
@ -53,7 +54,7 @@ trap popd EXIT
echo "Checking for Swamp updates..."
# Check for and download new patches.
# Check for and download new versions.
update="$(wget -N "${updateURL}" 2>&1 | grep "not modified on server")"
if [ -n "${update}" ]; then
@ -64,7 +65,7 @@ fi
echo "Updating Swamp..."
# Unzip the new patch
unzip -o SwampPatch.zip || extract_error
unzip -o Swamp.zip || extract_error
echo "Swamp has been updated."