logging: $usage helper and more cat-like helpers
This commit is contained in:
parent
2986e61021
commit
68195a72be
1 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
define_usage() { read -d '' usage; }
|
||||
errcho() { (>&2 echo $@); }
|
||||
ercat() { (>&2 cat "$@"); }
|
||||
errcat() { (>&2 cat <<<"$@"); }
|
||||
dedcat() { (>&2 cat <<<"$@"); exit 1; }
|
||||
xcat() { (>&2 cat "$@"); exit 0; }
|
||||
excat() { (>&2 cat <<<"$@"); exit 0; }
|
||||
die() { errcho $@; exit 1; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue