Fixed removal so it hopefully doesn't offer to remove ~/.local/games any more.

This commit is contained in:
Storm Dragon 2024-12-26 12:42:27 -05:00
parent 97a1ebaeeb
commit c8ec64ec52

View File

@ -414,11 +414,13 @@ game_removal() {
exit 0 exit 0
fi fi
# Create the menu of installed games # Create the menu of installed games
local selectedGame="$(dialog --backtitle "Linux Game Manager" \ local selectedGame
selectedGame=$(dialog --backtitle "Linux Game Manager" \
--clear \ --clear \
--no-tags \ --no-tags \
--menu "Please select a game to delete" 0 0 0 "${menuList[@]}" --stdout)" --menu "Please select a game to delete" 0 0 0 "${menuList[@]}" --stdout)
[[ $? -ne 0 ]] && exit 0 exitCode=$?
[[ $exitCode -ne 0 ]] && exit 0
# Get the actual game file paths # Get the actual game file paths
local gameName="${selectedGame##*/}" local gameName="${selectedGame##*/}"
gameName="${gameName%.sh}" gameName="${gameName%.sh}"