tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / params / test_params
index 8f13ca60e7a5cccdcc207512292bee39baf4be1d..c207532a50e888f2a908dbdf9f777f3c60e35f6e 100755 (executable)
@@ -8,7 +8,7 @@
 # Test how parameters are applied to sources auto-discovered by the convert
 # command.
 
-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.0226 seconds and 4 git commands to generate.