]> git.decadent.org.uk Git - dak.git/blobdiff - scripts/debian/buildd-remove-keys
its true damnit
[dak.git] / scripts / debian / buildd-remove-keys
index 180f1f250f3a9cc842c132e181669fe59bf36707..0ea4c23dc33afebf6031e7b9d15811a84470e0e7 100755 (executable)
@@ -172,7 +172,7 @@ for file in $(ls -1 ${INCOMING}/*.del ); do
     ARCHKEYRING="${base}/${ARCH}/keyring.gpg"
 
     # Is the key in there?
-    KEYNO=$(gpg ${DEFGPGOPT} --keyring "${ARCHKEYRING}" --with-colons --list-keys ${KEYID} | grep -c '^pub:')
+    KEYNO=$(gpg ${DEFGPGOPT} --keyring "${ARCHKEYRING}" --with-colons --list-keys ${KEYID} | grep -c '^pub:' || /bin/true )
 
     if [ $KEYNO -eq 1 ]; then
         # Right, exactly one there, lets get rid of it