debug() accepts stdin

This commit is contained in:
Jérémy Dubois 2022-06-09 17:09:26 +02:00
parent 460be854b0
commit 6daf5c6b42
2 changed files with 4 additions and 1 deletions

View file

@ -12,6 +12,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Added ### Added
* debug() accepts stdin
### Changed ### Changed
### Fixed ### Fixed

View file

@ -69,7 +69,8 @@ END
} }
debug() { debug() {
if [ "${VERBOSE}" = "1" ]; then if [ "${VERBOSE}" = "1" ]; then
echo "$1" msg="${1:-$(cat /dev/stdin)}"
echo "${msg}"
fi fi
} }