tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / convert / test_convert_args
index 7ac9843e0b9275d2d5c1bcfd4f2daa57b7731eac..cd7aab242f909bdb43eb96aebec443c892b982d9 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.023411 seconds and 4 git commands to generate.