Final touch on the printing to console code, now the console messages should be totally unmodified.

This commit is contained in:
Storm Dragon 2023-11-30 00:35:38 -05:00
parent 35a8a851d8
commit 0f236cb397

View File

@ -58,7 +58,6 @@ if [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then
gameOption+=" ${doomPath}/DoomMetalVol6.wad"
fi
set -o pipefail
case ${buttonCode} in
1)
# Death match setup
@ -119,7 +118,7 @@ case ${buttonCode} in
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)
exec stdbuf -oL ${gzdoom} ${gameOption} | while IFS= read -r l ; do echo "$l" | { grep "${grepStrings[@]}" | sed "${sedStrings[@]}" | spd-say -e; } || 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