mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
add compatibility for Bash 4 to setup.sh (#2519)
The command `shopt -s inherit_errexit` does not work in Bash < v4.4. This is now fixed.
This commit is contained in:
parent
7655c788ee
commit
2707474361
2
setup.sh
2
setup.sh
|
@ -26,7 +26,7 @@ LBLUE="\e[94m"
|
||||||
RESET="\e[0m"
|
RESET="\e[0m"
|
||||||
|
|
||||||
set -euEo pipefail
|
set -euEo pipefail
|
||||||
shopt -s inherit_errexit
|
shopt -s inherit_errexit 2>/dev/null || true
|
||||||
trap '__err "${BASH_SOURCE}" "${FUNCNAME[0]:-?}" "${BASH_COMMAND:-?}" "${LINENO:-?}" "${?:-?}"' ERR
|
trap '__err "${BASH_SOURCE}" "${FUNCNAME[0]:-?}" "${BASH_COMMAND:-?}" "${LINENO:-?}" "${?:-?}"' ERR
|
||||||
|
|
||||||
function __err
|
function __err
|
||||||
|
|
Loading…
Reference in a new issue