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
|
### Added
|
||||||
|
|
||||||
|
* debug() accepts stdin
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue