Fixed removal path for games.
This commit is contained in:
parent
30f36491f7
commit
ddb3e751c8
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user