]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix CentOS/RedHat test in regress
authorKern Sibbald <kern@sibbald.com>
Sun, 6 Dec 2009 22:16:19 +0000 (23:16 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 6 Dec 2009 22:16:19 +0000 (23:16 +0100)
regress/scripts/get-os

index 2a1cfed6560cd9520204ed6abf2653e777a59a08..a71100423395b4c9ca570f0524d6901b6e546f41 100755 (executable)
@@ -385,7 +385,7 @@ then
        DISTNAME=redhat
 elif test -f /etc/redhat-release
 then
-       if test `grep CentOS /etc/redhat-release`
+       if test `grep -q CentOS /etc/redhat-release`
        then
            DISTNAME=redhat
        else