summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-02-05 12:12:10 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-02-05 12:12:10 +0100
commit6e277cff12aaa83ec97cdb1a605edc38a2833527 (patch)
tree7fe439a013594061baec4be0b435500106200726
parent64098ca88f667ae9078e30c2fccb38f11b070a77 (diff)
downloadmewix-6e277cff12aaa83ec97cdb1a605edc38a2833527.tar.gz
mewix-6e277cff12aaa83ec97cdb1a605edc38a2833527.tar.xz
mewix-6e277cff12aaa83ec97cdb1a605edc38a2833527.zip
lib1.sh: add error
-rw-r--r--lib1.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib1.sh b/lib1.sh
index 5881a9a..9605656 100644
--- a/lib1.sh
+++ b/lib1.sh
@@ -1,4 +1,4 @@
-set -e 
+set -e
 
 pre_fetch() { :; }
 do_fetch() {
@@ -73,3 +73,8 @@ verbose() {
   printf "=> %s\n" "$*"
   "$@"
 }
+
+error() {
+  printf "=> ERROR! %s\n" "$*" 2>&1
+  exit 111
+}