Fixed bug in cp update script.

This commit is contained in:
Storm Dragon 2020-12-22 12:56:36 -05:00
parent d4bea6d1a0
commit db2d8e2827

View File

@ -44,11 +44,11 @@ configFile="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager/game
url="http://pragmapragma.free.fr/crazy-party/Crazy-Party-beta75.zip"
(rm -v "${cache}/Crazy-Party-beta73.zip"
wget -O "${cache}/Crazy-Party-beta75.zip" "$url" || { echo "Could not download file."; exit 1; }
unzip -od "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy-Party-beta75.zip"
unzip -DDod "$HOME/.local/wine/crazy-party/drive_c/Program Files" "${cache}/Crazy-Party-beta75.zip"
rm -fv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/nvdaControllerClient32.dll"
sed -i 's/Crazy-Party-beta73/Crazy-Party-beta75/' "$configFile"
mv -v "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/save.bin" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/"
cp -ruv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/*" "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/" 2> /dev/null
cp -ruv "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/"* "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta75/" 2> /dev/null
rm -rf "$HOME/.local/wine/crazy-party/drive_c/Program Files/Crazy-Party-beta73/") | dialog --progressbox "updating Crazy Party, please wait..." -1 -1
exit 0