tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / test_output_path_ctf_non_lttng_trace
index d7700931be8c19995848460e15e1e66abae77ffa..fc0158bfc777dd4453e8537f9a978291c2dd0ceb 100755 (executable)
@@ -17,7 +17,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.024675 seconds and 4 git commands to generate.