From 0f236cb39798754da495721add085670a77edf26 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 30 Nov 2023 00:35:38 -0500 Subject: [PATCH] Final touch on the printing to console code, now the console messages should be totally unmodified. --- .scripts/FreeDoom.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.scripts/FreeDoom.sh b/.scripts/FreeDoom.sh index a8cfd77..42cc472 100755 --- a/.scripts/FreeDoom.sh +++ b/.scripts/FreeDoom.sh @@ -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