From 93f5ab240f5861ee2f5430df580e3d831a89813d Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 21 Jan 2024 04:34:06 -0500 Subject: [PATCH] Fix launcher script for some systems that want you to be in the directory where wads reside. --- .scripts/FreeDoom.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.scripts/FreeDoom.sh b/.scripts/FreeDoom.sh index 3c70c6e..49c697d 100755 --- a/.scripts/FreeDoom.sh +++ b/.scripts/FreeDoom.sh @@ -115,9 +115,11 @@ case ${buttonCode} in '-extratic' '-dup' '3' ) fi + pushd "${doomPath}" exec stdbuf -oL ${gzdoom} ${gameOption} "${flags[@]}" | while IFS= read -r l ; do echo "$l" | { grep "${grepStrings[@]}" | sed "${sedStrings[@]}" | spd-say -e; } || echo "$l";done ;; 0) + pushd "${doomPath}" exec stdbuf -oL ${gzdoom} ${gameOption} | while IFS= read -r l ; do echo "$l" | { grep "${grepStrings[@]}" | sed "${sedStrings[@]}" | spd-say -e > /dev/null 2>&1; }; echo "$l";done ;; esac