Allow bail to use stdin for input
parent
36cd6b17d4
commit
ef0f8cc177
@ -1,4 +1,8 @@
|
|||||||
bail() (
|
bail() {
|
||||||
echo >&2 "$@"
|
if [ $# == 0 ]; then
|
||||||
|
cat >&2
|
||||||
|
else
|
||||||
|
echo >&2 "$@"
|
||||||
|
fi
|
||||||
exit 1
|
exit 1
|
||||||
)
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue