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
* debug() accepts stdin
### Changed
### Fixed

View File

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