From 412102712921e2b051da1d2ae9171d67a2a4bd61 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 13 Jul 2022 15:02:05 -0400 Subject: tests: Use set -u --- tests/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index 5254311..6ffef56 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -16,7 +16,7 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # ############################################################################ -set -eP +set -euP umask 022 export LC_ALL=C @@ -906,7 +906,7 @@ function _realpath() { TESTS=$(_realpath "$(dirname -- "${BASH_SOURCE[0]}")") -if [ "$BUILDDIR" ]; then +if [ "${BUILDDIR-}" ]; then BIN=$(_realpath "$BUILDDIR/bin") else BIN=$(_realpath "$TESTS/../bin") -- cgit v1.2.3