diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-07-13 15:02:05 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-07-13 15:02:05 -0400 |
commit | 412102712921e2b051da1d2ae9171d67a2a4bd61 (patch) | |
tree | b71538fbb2acfee23c9849da58000f820cc9ce90 /tests | |
parent | 2a4d320e7306484613723f97d1b194c988d23d51 (diff) | |
download | bfs-412102712921e2b051da1d2ae9171d67a2a4bd61.tar.xz |
tests: Use set -u
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests.sh | 4 |
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") |