summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-08-23 18:56:31 +0100
committerLeah Rowe <leah@libreboot.org>2023-08-23 19:12:00 +0100
commit57adbc6eb1f961ee9116904b667f30efb3f2de4f (patch)
tree73cff95e43ecbab6db374160ec5657b2853c6826 /include
parentb3fbcdf66eb6225128e2578788e085e1b1eedf34 (diff)
unify err functions across scripts
include/err.sh this new handling also does mundane things, such as tell you what script b0rked Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/err.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/err.sh b/include/err.sh
new file mode 100755
index 00000000..ea46ccb3
--- /dev/null
+++ b/include/err.sh
@@ -0,0 +1,8 @@
+# Copyright (c) 2022, 2023 Leah Rowe <info@minifree.org>
+# SPDX-License-Identifier: MIT
+
+err()
+{
+ printf "ERROR %s: %s\n" "${0}" "${1}" 1>&2
+ exit 1
+}