From: Simon Ruderich Date: Thu, 13 Jun 2013 20:11:15 +0000 (+0200) Subject: tests/lib.sh: Minor cleanup. X-Git-Tag: 0.1~53 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=3c2b4bf9f65fcf6f631d7529a3391c3564b3dc29;p=coloredstderr%2Fcoloredstderr.git tests/lib.sh: Minor cleanup. --- 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