diff --git a/.scripts/FreeDoom.sh b/.scripts/FreeDoom.sh index ab70b30..1789fb6 100755 --- a/.scripts/FreeDoom.sh +++ b/.scripts/FreeDoom.sh @@ -135,7 +135,8 @@ case ${buttonCode} in '-warp' "$map" ) fi - exec stdbuf -oL ${gzdoom} ${gameOption} "${flags[@]}" | stdbuf -oL grep "${grepStrings[@]}" | stdbuf -oL sed "${sedStrings[@]}" | spd-say -e + 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 ;; 2) # Exit was pressed, so exit.