Updated Swamp installer and update script.
This commit is contained in:
@ -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."
|
||||
|
||||
|
Reference in New Issue
Block a user