fc_install: Make inherit_errexit optional

Bash v3 does not have this option and no equivalent

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2026-09-04 00:08:04 +02:00
parent 939486b7bf
commit 74e2121584

View file

@ -27,7 +27,9 @@ scriptversion="1.0.0"
# shellcheck enable=require-variable-braces
set -euo pipefail
shopt -s inherit_errexit
if shopt | grep -s inherit_errexit; then
shopt -s inherit_errexit
fi
# environment
# -----------