This commit is contained in:
CanbiZ
2025-09-15 15:34:41 +02:00
parent c3fd7ea4e4
commit 8d687ba9ab
4 changed files with 84 additions and 82 deletions

View File

@@ -96,10 +96,10 @@ _tool_error_hint() {
# exit 143
# }
catch_errors() {
set -Eeuo pipefail
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
}
# catch_errors() {
# set -Eeuo pipefail
# trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
# }
# ------------------------------------------------------------------------------
# Sets ANSI color codes used for styled terminal output.
@@ -190,8 +190,11 @@ set_std_mode() {
}
# Silent execution function
SILENT_LOGFILE="/tmp/silent.$$.log"
silent() {
"$@" >/dev/null 2>&1
"$@" >>"$SILENT_LOGFILE" 2>&1
return $?
}
# Function to download & save header files