tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / query / test_query
index 21a3546758b4521722e843ff8ea015d77cc383be..e44d67779b629417291dca8a403d833db0ed41c0 100755 (executable)
@@ -5,7 +5,7 @@
 # Copyright (C) 2019 Simon Marchi <simon.marchi@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.022544 seconds and 4 git commands to generate.