diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 03eaa0f..2a8af50 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -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" \