tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / src.ctf.lttng-live / test_live
index f5ba914b5af8af44f272583febe2c9b0427e8dc5..e1766e158653039f80a2fb0984e5f073afc97a22 100755 (executable)
@@ -13,7 +13,7 @@
 
 SH_TAP=1
 
-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.022823 seconds and 4 git commands to generate.