Because the boundaries aren't correct, log_highlight() will attempt to
read input from stdin if only one line was passed in positional
parameters.
This commit fixes the boundary so that log_highlight() will print any
number of lines correctly, whether passed in positional parameters or
via stdin.
local lines=("${@:2}")
echo "===== BEGIN $tag ====="
- if (( ${#lines[@]} > 1 )); then
+ if (( ${#lines[@]} > 0 )); then
local arg
for arg in "${lines[@]}"; do