One more removal fix.

This commit is contained in:
Storm Dragon 2024-12-23 20:58:54 -05:00
parent ddb3e751c8
commit a01f34dd02

View File

@ -449,9 +449,9 @@ game_removal() {
else else
# Found install path, can remove game files # Found install path, can remove game files
dialog --backtitle "Linux Game Manager" \ dialog --backtitle "Linux Game Manager" \
--yesno "This will remove the directory \"${installPath}/${gameInstallPath}\" and all of its contents. Do you want to continue?" -1 -1 || exit 0 --yesno "This will remove the directory \"${gameInstallPath}\" and all of its contents. Do you want to continue?" -1 -1 || exit 0
# Remove the game directory and symlink # Remove the game directory and symlink
{ rm -rfv "${installPath}/${gameInstallPath}" { rm -rfv "${gameInstallPath}"
rm -fv "${0%/*}/.launch/${gameName}.sh"; rm -fv "${0%/*}/.launch/${gameName}.sh";
} | dialog --backtitle "Linux Game Manager" \ } | dialog --backtitle "Linux Game Manager" \
--progressbox "Removing game..." -1 -1 --progressbox "Removing game..." -1 -1