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:
@@ -186,7 +186,7 @@ fi
|
|||||||
# Choose presentation style
|
# Choose presentation style
|
||||||
#
|
#
|
||||||
if [ $QUIET -eq 1 ]; then
|
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
|
elif hash jq 2> /dev/null; then
|
||||||
OUTPUT="jq"
|
OUTPUT="jq"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user