From 1cde3473b5304f3e8b4ea23a9f8b5ee0d4caa4e6 Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Wed, 22 Feb 2023 21:41:54 -0600 Subject: [PATCH] Add happy wrappy! --- errhandl.bash | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 errhandl.bash diff --git a/errhandl.bash b/errhandl.bash new file mode 100644 index 0000000..816b432 --- /dev/null +++ b/errhandl.bash @@ -0,0 +1,2 @@ +# Don't want subsequent commands to run after nonzero exit? Wrappy in happy! +happy() { $@ || exit $?; }