tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / test_intersection
index 2077ab94836e194ab567537f81987856d07a9c34..df0f6504ad2c63411740f3121d1740a790eea0d3 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.023881 seconds and 4 git commands to generate.