tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / sink.text.pretty / test_pretty_python
index 3fdac62ceaed84cd92177501c78c6ed655b0a499..fe395e773b5514b5e7ec84db87c608b4d5a8d613 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.02469 seconds and 4 git commands to generate.