summaryrefslogtreecommitdiffstats
path: root/tests/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-07-13 15:02:05 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-07-13 15:02:05 -0400
commit412102712921e2b051da1d2ae9171d67a2a4bd61 (patch)
treeb71538fbb2acfee23c9849da58000f820cc9ce90 /tests/tests.sh
parent2a4d320e7306484613723f97d1b194c988d23d51 (diff)
downloadbfs-412102712921e2b051da1d2ae9171d67a2a4bd61.tar.xz
tests: Use set -u
Diffstat (limited to 'tests/tests.sh')
-rwxr-xr-xtests/tests.sh4
1 files 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")