Fix launcher script for some systems that want you to be in the directory where wads reside.

This commit is contained in:
Storm Dragon 2024-01-21 04:34:06 -05:00
parent 8dd803bdd4
commit 93f5ab240f

View File

@ -115,9 +115,11 @@ case ${buttonCode} in
'-extratic' '-dup' '3' '-extratic' '-dup' '3'
) )
fi 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 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) 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 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 esac