aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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