Files
Alexey Pustovalov b8fed86d78
Some checks failed
Build images (DockerHub) / Initialize build (push) Has been cancelled
Build images (DockerHub) / Build base on ${{ matrix.os }} (push) Has been cancelled
Build images (DockerHub) / Build ${{ matrix.build }} base on ${{ matrix.os }} (push) Has been cancelled
Build images (DockerHub) / Build ${{ matrix.build }} on ${{ matrix.os }} (push) Has been cancelled
Build images (RedHat) / Initialize build (push) Has been cancelled
Build images (RedHat) / Build ${{ matrix.build }} base (${{ matrix.arch }}) (push) Has been cancelled
Build images (RedHat) / Build ${{ matrix.build }} image (${{ matrix.arch }}) (push) Has been cancelled
Build images (RedHat) / Clear images cache (${{ matrix.arch }}) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
SonarCloud analysis / Analysis (push) Has been cancelled
Prepare to remove supervisord
2026-04-13 21:28:21 +09:00

18 lines
440 B
Bash

# shellcheck shell=bash
debug_err_trap() {
local rc=$?
printf 'ERROR: exit code %s in %s:%s:%s: %s\n' \
"$rc" "${BASH_SOURCE[1]##*/}" "${FUNCNAME[1]:-main}" "${BASH_LINENO[0]}" "$BASH_COMMAND" >&2
exit "$rc"
}
enable_debug_mode() {
[[ "${DEBUG_MODE:-}" == "true" ]] || return 0
export PS4='+ ${BASH_SOURCE##*/} : ${FUNCNAME[0]:-main} : ${LINENO}: '
set -Ex
trap debug_err_trap ERR
}
enable_debug_mode