From ddb3e751c8edf0c5dd44d04721259cf15f62e7b8 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 23 Dec 2024 20:54:23 -0500 Subject: [PATCH] Fixed removal path for games. --- linux-game-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" \