Tools: unitc quiet mode fix for macOS.

head -c 0 does not work on macOS (invalid byte count) but tail(1) is happy
to accept zero bytes, and does not have a performance penalty.
This commit is contained in:
Liam Crilly
2023-10-03 14:57:17 +01:00
parent 135160934a
commit 9ad207057c

View File

@@ -186,7 +186,7 @@ fi
# Choose presentation style
#
if [ $QUIET -eq 1 ]; then
OUTPUT="head -c 0" # Equivalent to >/dev/null
OUTPUT="tail -c 0" # Equivalent to >/dev/null
elif hash jq 2> /dev/null; then
OUTPUT="jq"
else