xenserver: Make rpmbuild happy by updating %files with new utilities.
[openvswitch] / utilities / ovs-pki.in
index 1f5286908c32b16ba5650b4df248a76d8829535d..9a55961fe3641746ebb02e229220bda99eb1fc66 100755 (executable)
@@ -361,7 +361,7 @@ fingerprint() {
     file=$1
     name=${1-$2}
     date=$(date -r $file)
-    if grep -q -e '-BEGIN CERTIFICATE-' "$file"; then
+    if grep -e '-BEGIN CERTIFICATE-' "$file" > /dev/null; then
         fingerprint=$(openssl x509 -noout -in "$file" -fingerprint |
                       sed 's/SHA1 Fingerprint=//' | tr -d ':')
     else