summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLiam Crilly <liam.crilly@nginx.com>2023-10-03 14:57:17 +0100
committerLiam Crilly <liam.crilly@nginx.com>2023-10-03 14:57:17 +0100
commit9ad207057c620f234f01483bd3a39176945ec202 (patch)
tree27888c18176e121e2a749eb11da0516b3c69de3d
parent135160934ab39c9a9ee26f7c0322003c1546d7ad (diff)
downloadunit-9ad207057c620f234f01483bd3a39176945ec202.tar.gz
unit-9ad207057c620f234f01483bd3a39176945ec202.tar.bz2
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.
-rwxr-xr-xtools/unitc2
1 files changed, 1 insertions, 1 deletions
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