tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / sink.ctf.fs / succeed / test_succeed
index ffca9bdac862f35f95ea96d2c7daea827fe35191..6d47c09e2a6e18a35b79cd30c80bafc4c910e99c 100755 (executable)
@@ -13,7 +13,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.022934 seconds and 4 git commands to generate.