From 69a3d1b4d5ef45a620ec83f8cb9422f3d0a24eca Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 7 May 2025 13:26:26 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 6cecb7b..d1c324e 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -929,15 +929,10 @@ function setup_gs() { fi } -enable_curl_strict_error_handling() { - set -eE -o pipefail - trap '__curl_err_handler $?' ERR -} - __curl_err_handler() { local exit_code="$1" local cmd="${BASH_COMMAND:-unknown}" - if [[ "$cmd" != curl* ]]; then + if ! grep -q 'curl' <<<"$cmd"; then return fi