]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/commitdiff
tests/lib.sh: Minor cleanup.
authorSimon Ruderich <simon@ruderich.org>
Thu, 13 Jun 2013 20:11:15 +0000 (22:11 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 13 Jun 2013 20:11:15 +0000 (22:11 +0200)
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