From b9ce802c8f233a631b1dfe195aa4ba0df797bc13 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 16 Sep 2025 10:07:28 +0200 Subject: [PATCH] Update core.func --- misc/core.func | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/misc/core.func b/misc/core.func index 011864a1..d78bb553 100644 --- a/misc/core.func +++ b/misc/core.func @@ -193,17 +193,13 @@ SILENT_LOGFILE="/tmp/silent.$$.log" silent() { local cmd="$*" - - trap - ERR + set +Eeuo pipefail "$@" >>"$SILENT_LOGFILE" 2>&1 local rc=$? - trap 'error_handler' ERR - + set -Eeuo pipefail if [[ $rc -ne 0 ]]; then BASH_COMMAND="$cmd" - error_handler "$rc" fi - return $rc }