debug() accepts stdin
This commit is contained in:
parent
460be854b0
commit
6daf5c6b42
|
@ -12,6 +12,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
|
||||
### Added
|
||||
|
||||
* debug() accepts stdin
|
||||
|
||||
### Changed
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -69,7 +69,8 @@ END
|
|||
}
|
||||
debug() {
|
||||
if [ "${VERBOSE}" = "1" ]; then
|
||||
echo "$1"
|
||||
msg="${1:-$(cat /dev/stdin)}"
|
||||
echo "${msg}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue