tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / test_packet_seq_num
index c74b2957e1ae036f6f4251739c489b63b5e24a51..341a9c26eaa3a2e1af9cd0e1dab329ee0f058562 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.023033 seconds and 4 git commands to generate.