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