packaging(RHEL-CTDB): fix the build when ccache is not found.
[kai/samba.git] / packaging / RHEL-CTDB / samba.spec.tmpl
index f67cab68b9f30e27338cefd7ea28b36aecc43568..e1eee81e45c8a28d128a42a893c4a9decb599892 100644 (file)
@@ -133,8 +133,7 @@ cd source
 # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
 
 ## check for ccache
-ccache -h 2>&1 > /dev/null
-if [ $? -eq 0 ]; then
+if ccache -h 2>&1 > /dev/null ; then
        CC="ccache gcc"
 else
        CC="gcc"