tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / test_output_ctf_metadata
index a97af1df2f222a825592f9a6b7469a60a03daec2..58969f8a9b9db7b777b099abdba82ef451ffdffc 100755 (executable)
@@ -7,7 +7,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.023104 seconds and 4 git commands to generate.