packaging(RHEL-CTDB): don't show failure messages in check for ccache
authorMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 22:19:02 +0000 (23:19 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 11 Dec 2008 16:47:50 +0000 (17:47 +0100)
by fixing the order of "> /dev/null 2>&1"

Michael
(cherry picked from commit 0e9d5638a7c375b3b18f19f83f97924ab45ad382)

packaging/RHEL-CTDB/samba.spec.tmpl

index e1eee81e45c8a28d128a42a893c4a9decb599892..8a583a9bde49d86ec80deb0bb1277659a8b5df8a 100644 (file)
@@ -133,7 +133,7 @@ cd source
 # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
 
 ## check for ccache
-if ccache -h 2>&1 > /dev/null ; then
+if ccache -h >/dev/null 2>&1 ; then
        CC="ccache gcc"
 else
        CC="gcc"