Fixed removal so it hopefully doesn't offer to remove ~/.local/games any more.
This commit is contained in:
parent
97a1ebaeeb
commit
c8ec64ec52
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user