tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / lib / test_plugin
index f16f1bd0520e98fab1565ee671fcff4d083423a9..b9a3fcdafc7aca2fc9eb60e56680e629589de335 100755 (executable)
@@ -5,7 +5,7 @@
 # Copyright (C) 2017 Philippe Proulx <pproulx@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.022694 seconds and 4 git commands to generate.