From 2b22c47976a79f1fee51e35a602177d50ec74674 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 16 Sep 2025 10:04:37 +0200 Subject: [PATCH] Update core.func --- misc/core.func | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/core.func b/misc/core.func index 1fc9e034..011864a1 100644 --- a/misc/core.func +++ b/misc/core.func @@ -189,7 +189,6 @@ set_std_mode() { fi } -# Silent execution function SILENT_LOGFILE="/tmp/silent.$$.log" silent() { @@ -202,8 +201,10 @@ silent() { if [[ $rc -ne 0 ]]; then BASH_COMMAND="$cmd" - return $rc + error_handler "$rc" fi + + return $rc } # Check if the shell is using bash