tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / flt.lttng-utils.debug-info / test_bin_info_x86_64-linux-gnu
index 404ffe587d4a1477e31604c03fc87eb7b8655c2f..d0e59e280b7c99ec7350d1f2b8982bd8279d96e0 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.023064 seconds and 4 git commands to generate.