From: Bastian Dehn Date: Fri, 12 Dec 2025 17:46:00 +0000 (+0100) Subject: post scripts handle errors X-Git-Tag: v1.1.23^2~4 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=0f8a5667a343289f74ff7a839ce8ba2e06ab5a74;p=sane-kds-s2000w-net.git post scripts handle errors --- diff --git a/src/debian/postinst b/src/debian/postinst index 93240aa..37c842b 100755 --- a/src/debian/postinst +++ b/src/debian/postinst @@ -1,5 +1,7 @@ #!/bin/bash +set -e + errlog() { local lastexit=$? diff --git a/src/debian/postrm b/src/debian/postrm index 482b813..c51bf14 100755 --- a/src/debian/postrm +++ b/src/debian/postrm @@ -1,5 +1,7 @@ #!/bin/bash +set -e + errlog() { local lastexit=$?