5e8ff9aca8ce9cc51dc06dcf2b1bc9d904f52548
2 # Copyright (C) 2019 Ian Kelling
3 # SPDX-License-Identifier: Apache-2.0
5 if ! test "$BASH_VERSION"; then echo "error: shell is not bash" >&2; exit 1; fi
7 shopt -s inherit_errexit
2>/dev
/null ||
: # ignore fail in bash < 4.4
9 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?. PIPESTATUS: ${PIPESTATUS[*]}" >&2' ERR