tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / python-plugin-provider / test_python_plugin_provider
index 1e66c6ae8c9cc94f450668f22f71d5073a00f787..542c174874363c3f00b0ca819df8b1915fce10a7 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.02284 seconds and 4 git commands to generate.