From 27074743618a226f7627d858adf127969efec15a Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Fri, 1 Apr 2022 19:10:39 +0200 Subject: [PATCH] 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. --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index ccaed653..6d8516e9 100755 --- a/setup.sh +++ b/setup.sh @@ -26,7 +26,7 @@ LBLUE="\e[94m" RESET="\e[0m" 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 function __err