fix variable expansion in ERR trap for setup.sh

This commit is contained in:
Georg Lauterbach 2021-02-27 14:26:04 +01:00
parent 3c664952b3
commit 941e7acdae
No known key found for this signature in database
GPG key ID: 2FDC58699AF121C6

View file

@ -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