X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=tests%2Flib.sh;h=897d50e754ca38a4fe5bc6658b0a1217e8217818;hp=27653f760908487ae64d793092daf4d02db00f03;hb=3c2b4bf9f65fcf6f631d7529a3391c3564b3dc29;hpb=59375c2b7949791d8cad8e5cebde2649bac83ec8 diff --git a/tests/lib.sh b/tests/lib.sh index 27653f7..897d50e 100644 --- a/tests/lib.sh +++ b/tests/lib.sh @@ -88,7 +88,7 @@ run_test() { export COLORED_STDERR_PRE export COLORED_STDERR_POST # And force writes to a file (unless we are testing the force). - if test "x$force_write" != x; then + if test -n "$force_write"; then COLORED_STDERR_FORCE_WRITE=1 export COLORED_STDERR_FORCE_WRITE fi