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