tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / flt.lttng-utils.debug-info / test_bin_info_i386-linux-gnu
index 781d4889ba4bf88f0b92e6e7c932db4c8eb3bc61..2703f3e71c293920cd9929f9334778d558ae3a8c 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.022777 seconds and 4 git commands to generate.