From 3635f32123ec73946e00f12c90cf2ce32ee758c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Jer=C3=B3nimo?= Date: Mon, 27 Oct 2025 13:49:59 +0000 Subject: [PATCH] Added new function to handle fatal errors --- email/patchman-email | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/email/patchman-email b/email/patchman-email index d59a0a8c..dafc6328 100755 --- a/email/patchman-email +++ b/email/patchman-email @@ -83,6 +83,11 @@ email() { fi } +fatal() { + echo "$@" >&2 + kill -10 $proc +} + getConfig() { # Gets the configuration of section $1, parameter $2 val=$(sed -nr "/\[$1\]/,/\[/{/^(\W|)$2=/p}" $CONF)