tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / test_exit_status
index d76d5214e6c9973dd462e4d2dcecfaf5a6bc5c7c..905a2eb37a370aa12f4b36802229ffe88b5e2c26 100755 (executable)
@@ -7,7 +7,7 @@
 
 SH_TAP=1
 
-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.026715 seconds and 4 git commands to generate.