fix typo
authorBaris Metin <bmetin@verivue.com>
Tue, 3 May 2011 15:26:44 +0000 (11:26 -0400)
committerS.Çağlar Onur <caglar@verivue.com>
Wed, 4 May 2011 19:47:55 +0000 (15:47 -0400)
plc.d/gpg

index 3993f42..189e608 100755 (executable)
--- a/plc.d/gpg
+++ b/plc.d/gpg
@@ -99,12 +99,12 @@ EOF
                 | grep "$PLC_MAIL_SUPPORT_ADDRESS" \
                 | grep "http://$PLC_WWW_HOST/"
             
-            if [ $? -ne 1 ]; then
+            if [ $? -ne 0 ]; then
                gpg --homedir=$homedir --no-permission-warning --batch --no-tty --yes \
                    --no-default-keyring \
                    --secret-keyring=$PLC_ROOT_GPG_KEY \
                    --keyring=$PLC_ROOT_GPG_KEY_PUB \
-                   --Command-Fd 0 --status-fd 1 --edit-key $fingerprint <<EOF
+                   --command-fd 0 --status-fd 1 --edit-key $fingerprint <<EOF
 adduid
 $PLC_NAME Central
 $PLC_MAIL_SUPPORT_ADDRESS