mirror of
https://mirror.skon.top/github.com/zabbix/zabbix-docker
synced 2026-04-23 10:20:58 +08:00
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
18 lines
440 B
Bash
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
|