tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / convert / test_auto_source_discovery_grouping
index ba7f558a9e0d3878ca04b5ab0ff481a8e83aabe6..e476c96cb435a6448575c444c9b28d37c48df25b 100755 (executable)
@@ -7,7 +7,7 @@
 
 # Test the auto source disovery mechanism of the CLI.
 
-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.023156 seconds and 4 git commands to generate.