tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / src.ctf.fs / query / test_query_metadata_info
index 9c2e4d0afd9dcea49229eda0e3cd2a65d6dbdbed..6db90091d321198da45332fc2679ed9e91cfeed7 100755 (executable)
@@ -8,7 +8,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.023482 seconds and 4 git commands to generate.