tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / flt.lttng-utils.debug-info / test_succeed
index 3825b8987fda5e71007a07f8bfa80910f18c8928..1df6fbb2f0cf7b086e18ccf81e33a70cd8c5c6b6 100755 (executable)
@@ -14,7 +14,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.02389 seconds and 4 git commands to generate.