Fixed removal path for games.

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

View File

@ -436,8 +436,8 @@ game_removal() {
# Get the actual installation path from the .game file
local gameInstallPath
gameInstallPath="$(grep -F "installPath" "$gameFile" | grep -v 'pushd' | head -n1)"
gameInstallPath="${gameInstallPath#*${installPath}/}"
gameInstallPath="${gameInstallPath%/*}"
gameInstallPath="${gameInstallPath#*/}"
gameInstallPath="${installPath}/${gameInstallPath%/*}"
if [[ -z "$gameInstallPath" ]]; then
# No install path found, just remove from list
dialog --backtitle "Linux Game Manager" \