diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-02-05 12:12:10 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-02-05 12:12:10 +0100 |
commit | 6e277cff12aaa83ec97cdb1a605edc38a2833527 (patch) | |
tree | 7fe439a013594061baec4be0b435500106200726 | |
parent | 64098ca88f667ae9078e30c2fccb38f11b070a77 (diff) | |
download | mewix-6e277cff12aaa83ec97cdb1a605edc38a2833527.tar.gz mewix-6e277cff12aaa83ec97cdb1a605edc38a2833527.tar.xz mewix-6e277cff12aaa83ec97cdb1a605edc38a2833527.zip |
lib1.sh: add error
-rw-r--r-- | lib1.sh | 7 |
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 +} |