Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Debian/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@

set -Eeuo pipefail

error_trap() {
local exit_code=$?
local line_number=$LINENO
local script_name=$(basename "$0")
local func_name=${FUNCNAME[1]:-MAIN}

echo "❌ ERROR in $script_name at line $line_number"
echo " Function: $func_name"
echo " Command: '$BASH_COMMAND'"
echo " Exit code: $exit_code"
exit $exit_code
}

trap error_trap ERR

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

LIBDIR="$(pwd)/../lib"
Expand Down
Loading