This commit is contained in:
CanbiZ
2025-05-07 16:05:08 +02:00
parent c4aecb5108
commit 40e0159a68
4 changed files with 0 additions and 9 deletions

View File

@@ -37,7 +37,6 @@ verb_ip6() {
# This function catches errors and handles them with the error handler function
catch_errors() {
unset SPINNER_PID
set -Eeuo pipefail
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
}
@@ -49,7 +48,6 @@ error_handler() {
local command="$2"
local error_message="${RD}[ERROR]${CL} in line ${RD}$line_number${CL}: exit code ${RD}$exit_code${CL}: while executing command ${YW}$command${CL}"
echo -e "\n$error_message\n"
[[ -n "${SPINNER_PID:-}" ]] && kill "$SPINNER_PID" &>/dev/null || true
}
# This function sets up the Container OS by generating the locale, setting the timezone, and checking the network connection