From a2b67035a6b7008394c678392b93721642010172 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 5 Nov 2022 17:03:33 -0400 Subject: [PATCH] Fixed on more path in freedoom installer. --- linux-game-manager.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 66c4378..8c6938e 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -512,7 +512,8 @@ case "${game}" in add_launcher "${installPath}/FS2_2.6_Linux/FS2.x86_64" "-ESpeakApplication=espeak-ng" ;; "Freedoom") - if [[ ! -d /usr/share/games/doom ]]; then + doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null)" + if [[ ${#doomPath} -lt 5 ]]; then dialog --backtitle "Linux Game Manager" \ --yesno "Do you want Linux Game Manager to install freedoom and gzdoom for you? If you want to do this manually, select no." -1 -1 --stdout || exit 0 if command -v yay &> /dev/null ; then