]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - tests/lib.sh
tests/lib.sh: Minor cleanup.
[coloredstderr/coloredstderr.git] / tests / lib.sh
index 27653f760908487ae64d793092daf4d02db00f03..897d50e754ca38a4fe5bc6658b0a1217e8217818 100644 (file)
@@ -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