From 01707c746f1b0ade415d033fdef679c227e01b7a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 22 May 2023 07:35:53 +0000 Subject: ignore unsupported inherit_errexit I have a really ancient machine with an even more ancient version of bash that doesn't support inherit_errexit. Ignore for now, put it back later. --- %HOME%/.bash_utils/path.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '%HOME%/.bash_utils/path.sh') diff --git a/%HOME%/.bash_utils/path.sh b/%HOME%/.bash_utils/path.sh index 326cbf7..20c6a31 100644 --- a/%HOME%/.bash_utils/path.sh +++ b/%HOME%/.bash_utils/path.sh @@ -11,7 +11,8 @@ path_add() ( set -o errexit -o nounset -o pipefail - shopt -s inherit_errexit lastpipe + shopt -s inherit_errexit 2> /dev/null || true + shopt -s lastpipe [ "$#" -eq 0 ] && return 0 -- cgit v1.2.3