]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
errlog extra file
authorBastian Dehn <hhaalo@arcor.de>
Fri, 3 Apr 2026 12:30:15 +0000 (14:30 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 3 Apr 2026 12:30:15 +0000 (14:30 +0200)
src/errlog.sh [new file with mode: 0644]
src/scanbasic.sh

diff --git a/src/errlog.sh b/src/errlog.sh
new file mode 100644 (file)
index 0000000..cd02b05
--- /dev/null
@@ -0,0 +1,9 @@
+errlog()
+{
+       local lastexit=$?
+       local msg="$1"
+
+       echo "❌ ERROR: $msg"
+       echo "🛑 EXIT $lastexit"
+       return $lastexit
+}
index db199acbd7fed3970633e1ab7e8d4ed51dbb5044..639a878249584534a5591b20061e142032d6713a 100644 (file)
@@ -1,13 +1,5 @@
+#include "errlog.sh"
 #include "addocr.sh"
-errlog()
-{
-       local lastexit=$?
-       local msg="$1"
-
-       echo "❌ ERROR: $msg"
-       echo "🛑 EXIT $lastexit"
-       return $lastexit
-}
 
 check_commands()
 {