Fixed a pretty massive bug in update-swamp.

This commit is contained in:
Storm Dragon 2022-01-16 16:27:28 -05:00
parent a90b808700
commit bc5c4f37f6

View File

@ -11,7 +11,7 @@
# #
# Software distributed under the License is distributed on an â ISâasis, # Software distributed under the License is distributed on an â ISâasis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the # for THE SPecific language governing rights and limitations under the
# License. # License.
# #
# The Original Code is audiogame manager. # The Original Code is audiogame manager.
@ -44,7 +44,7 @@ updateFiles=("Swamp.zip")
# Back up configuration files. # Back up configuration files.
for i in losers.txt muted.txt scriptkeys.txt keyconfig.ini ; do for i in losers.txt muted.txt scriptkeys.txt keyconfig.ini ; do
cp -v ~/"drive_c/Program Files/swamp/${i}" ~/"drive_c/Program Files/swamp/${i}.agm" cp -v ~/".local/wine/swamp/drive_c/Program Files/swamp/${i}" ~/".local/wine/swamp/drive_c/Program Files/swamp/${i}.agm"
echo "${i} backed up as ${i}.agm" echo "${i} backed up as ${i}.agm"
done | dialog --progressbox "Backing up configuration files. They can be found in your swamp directory." -1 -1 done | dialog --progressbox "Backing up configuration files. They can be found in your swamp directory." -1 -1
@ -53,7 +53,7 @@ sleep 3
# Download and extract updates # Download and extract updates
for i in "${updateFiles[@]}" ; do for i in "${updateFiles[@]}" ; do
wget -O "${cache}/$i" "${url}/$i" wget -O "${cache}/$i" "${url}/$i"
unzip -d ~/"drive_c/Program Files/swamp" "${cache}/${i}" unzip -d ~/".local/wine/swamp/drive_c/Program Files/swamp" "${cache}/${i}"
done | dialog --progressbox "Updating Swamp, please wait..." -1 -1 done | dialog --progressbox "Updating Swamp, please wait..." -1 -1