diff options
author | Liam Crilly <liam.crilly@nginx.com> | 2023-10-03 14:57:17 +0100 |
---|---|---|
committer | Liam Crilly <liam.crilly@nginx.com> | 2023-10-03 14:57:17 +0100 |
commit | 9ad207057c620f234f01483bd3a39176945ec202 (patch) | |
tree | 27888c18176e121e2a749eb11da0516b3c69de3d /tools | |
parent | 135160934ab39c9a9ee26f7c0322003c1546d7ad (diff) | |
download | unit-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.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/unitc | 2 |
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 |