[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Small fix for keycheck.sh


attached patch. I think I did this change because keycheck failed in a
confusing way if I gave it a wrong key id, but now I don't remember the
details. Anyway, it's a simple sanity change.



GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico@enricozini.org>
From 673f2fb6462fab21d4c96c8403da9f65907707a3 Mon Sep 17 00:00:00 2001
From: Enrico Zini <enrico@enricozini.org>
Date: Mon, 1 Jun 2009 19:12:19 +0200
Subject: [PATCH 09/10] Fix a case that gave me an issue

 keycheck.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/keycheck.sh b/keycheck.sh
index 4ef3306..63fa795 100755
--- a/keycheck.sh
+++ b/keycheck.sh
@@ -59,7 +59,7 @@ gpg $2 ${GPGOPTS} -v --with-fingerprint --keyring $DESTDIR/debian-keyring.gpg --
 echo "Let's test if its a version 4 or greater key"
 VERSION=$(gpg ${GPGOPTS} --with-colons --with-fingerprint --list-keys 0x$KEYID | awk -F : '$1 == "fpr" {print length($10)}')
-if [ $VERSION -eq 32 ]; then
+if [ "$VERSION" -eq 32 ]; then
 	echo "Warning: It looks like this key is an Version 3 GPG key. This is bad."
 	echo "This is not accepted for the NM ID Step. Please doublecheck and then"
 	echo "get your applicant to send you a correct key if this is script isnt wrong."

Attachment: signature.asc
Description: Digital signature

Reply to: