tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / flt.lttng-utils.debug-info / test_bin_info_powerpc64le-linux-gnu
index 7abf70c38125eac9b95a23fda4efe6d2d58bdd79..60407c50ffafe595842e3adc28640524a32e7298 100755 (executable)
@@ -6,7 +6,7 @@
 # Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
 #
 
-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.023074 seconds and 4 git commands to generate.