Skip to content

Commit 9ad2070

Browse files
committed
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.
1 parent 1351609 commit 9ad2070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/unitc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fi
186186
# Choose presentation style
187187
#
188188
if [ $QUIET -eq 1 ]; then
189-
OUTPUT="head -c 0" # Equivalent to >/dev/null
189+
OUTPUT="tail -c 0" # Equivalent to >/dev/null
190190
elif hash jq 2> /dev/null; then
191191
OUTPUT="jq"
192192
else

0 commit comments

Comments
 (0)