tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / lib / conds / test_conds
index 851079a4e7aa3876cf9c23404cd42cf448104274..af66f6d299fe2cac951b65a63f1bee873bde8a7f 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
 
-if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then
+if [ -n "${BT_TESTS_SRCDIR:-}" ]; then
        UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
 else
        UTILSSH="$(dirname "$0")/../../utils/utils.sh"
This page took 0.022962 seconds and 4 git commands to generate.