logging.bash: Add dedcat and excat helpers

This commit is contained in:
Andrew Rogers 2023-06-21 23:51:03 -05:00
commit b4e2541e50
3 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,5 @@
errcho() { (>&2 echo $@); }
errcat() { (>&2 cat <<<"$@"); }
dedcat() { (>&2 cat <<<"$@"); exit 1; }
excat() { (>&2 cat <<<"$@"); exit 0; }
die() { errcho $@; exit 1; }