From 941e7acdaebe271eaf3d296b36d4d81df4c54b90 Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+aendeavor@users.noreply.github.com> Date: Sat, 27 Feb 2021 14:26:04 +0100 Subject: [PATCH] fix variable expansion in ERR trap for setup.sh --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index fd83ce5e..c588b0a2 100755 --- a/setup.sh +++ b/setup.sh @@ -7,7 +7,7 @@ SCRIPT='setup.sh' set -euEo pipefail -trap '__log_err ${FUNCNAME[0]:-"?"} ${BASH_COMMAND:-"?"} ${LINENO:-"?"} ${?:-"?"}' ERR +trap '__log_err "${FUNCNAME[0]:-?}" "${BASH_COMMAND:-?}" "${LINENO:-?}" "${?:-?}"' ERR trap '_unset_vars || :' EXIT function __log_err