]> git.corax.cc Git - toolbox/commit
include/log: Fix invalid decision to read from stdin in log_highlight()
authorMatthias Kruk <m@m10k.eu>
Sat, 26 Jun 2021 01:58:11 +0000 (10:58 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 26 Jun 2021 02:07:11 +0000 (11:07 +0900)
commit132c22683e48f05ad919c7db52c61e3565052c98
tree6d4d3360f7788f47e639f70f57bf574e3e8c9ab4
parentc5f680dd8dd86fd7fd6985060b6a8fb87ba20e94
include/log: Fix invalid decision to read from stdin in log_highlight()

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.
include/log.sh