V8.03.768.2025.06.18
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -44,12 +44,6 @@ debugger() {
|
||||
### Open file descriptor 42 for writing to the debug log
|
||||
exec 42>| "${LOG_DEBUG}"
|
||||
### Write Debug Log Header https://www.gnu.org/software/bash/manual/html_node/Bash-Variables
|
||||
### Determine the directory of this script, even if sourced.
|
||||
# shellcheck disable=SC2155
|
||||
declare script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
### Source the header from the same directory. This ensures we always load lib/lib_debug_header.sh correctly.
|
||||
. "${script_dir}/lib_debug_header.sh"
|
||||
# shellcheck disable=SC2119
|
||||
debug_header "$#" "$*"
|
||||
### Tell Bash to send xtrace output to FD 42
|
||||
export BASH_XTRACEFD=42
|
||||
|
||||
Reference in New Issue
Block a user