debug() accepts stdin
This commit is contained in:
parent
805e23e7e3
commit
83a7d32766
|
@ -76,7 +76,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