summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-26 20:03:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-26 20:03:55 -0300
commit176efc9b17199d19aad129a651c1ef0cd3afa3c0 (patch)
treef5c867647f67aad9282ce9c8775353be8906ce3b
parentf04c05d3432cc8f59c28ce98c17dd407d658c5b6 (diff)
downloadhydra-176efc9b17199d19aad129a651c1ef0cd3afa3c0.tar.gz
hydra-176efc9b17199d19aad129a651c1ef0cd3afa3c0.tar.bz2
Newkeys: fixing iteration
-rwxr-xr-xshare/hydra/newkeys2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydra/newkeys b/share/hydra/newkeys
index c418f5c..09e1c35 100755
--- a/share/hydra/newkeys
+++ b/share/hydra/newkeys
@@ -29,7 +29,7 @@ function hydra_newkeys {
hydra_genpairs ssh
elif [ "$1" == "all-pgp" ]; then
hydra_genpairs pgp
- elif [ ! -z "$1" ]; then
+ elif [ ! -z "$1" ] && [ "$node" == "$1" ]; then
hydra_genpairs $2
exit $?
elif [ ! -e "$privkey" ] || [ ! -e "$pubkey" ]; then