From 9ad207057c620f234f01483bd3a39176945ec202 Mon Sep 17 00:00:00 2001 From: Liam Crilly Date: Tue, 3 Oct 2023 14:57:17 +0100 Subject: 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. --- tools/unitc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/unitc b/tools/unitc index 877e11d4..1db59faa 100755 --- a/tools/unitc +++ b/tools/unitc @@ -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 -- cgit