]> gitweb.fluxo.info Git - hydra.git/commitdiff
Newkeys: fixing iteration
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Apr 2014 23:03:55 +0000 (20:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Apr 2014 23:03:55 +0000 (20:03 -0300)
share/hydra/newkeys

index c418f5c2f7a143797cb8582af9a7b523d2916001..09e1c35d193a0d93df6f740fa7a1972891cc8de5 100755 (executable)
@@ -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