X-Git-Url: https://iankelling.org/git/?p=buildscripts;a=blobdiff_plain;f=rust;fp=rust;h=5ed2870e32fcf374b4b8c682ee7cfc866ccfa12d;hp=ceaf4c21a4832a0ca971f58bb80c276c6b26dedc;hb=2734f99556feff8f8861a193d77c438ac9b8aa11;hpb=6d5364acaf732814110b7ab98ef1d266276f64ee diff --git a/rust b/rust index ceaf4c2..5ed2870 100755 --- a/rust +++ b/rust @@ -2,11 +2,6 @@ # Copyright (C) 2019 Ian Kelling # SPDX-License-Identifier: AGPL-3.0-or-later -if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi - -shopt -s inherit_errexit 2>/dev/null ||: # ignore fail in bash < 4.4 -set -eE -o pipefail -trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR # alternatively, using https://iankelling.org/git/?p=errhandle;a=tree # source /path/errhandle/err # on my machine