From 24a504328c08ae5c293ae637bcb3024c518e608e Mon Sep 17 00:00:00 2001 From: accel Date: Mon, 20 Dec 2021 18:07:07 +0300 Subject: [PATCH] small update for key mailer --- zssh.funcs.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zssh.funcs.zsh b/zssh.funcs.zsh index ddd4897..db4d9de 100644 --- a/zssh.funcs.zsh +++ b/zssh.funcs.zsh @@ -133,9 +133,9 @@ function zssh_mail_pubkey2() { [[ -n $zssh_host ]] || return 63 ssh_node="$1" - ztools_ensure -d $(zssh_node_info ${ssh_node} -K) if ! [[ $(zssh_node_info ${ssh_node} -k) -ot "$(zssh_node_info ${ssh_node} -K)/$zssh_host.key.pub" ]] then + ztools_ensure -d $(zssh_node_info ${ssh_node} -K) zbootstrap_message zssh "sending '$(zssh_node_info ${ssh_node} -k) to '$(zssh_node_info ${ssh_node} -K ${zssh_host})'" cp $(zssh_node_info ${ssh_node} -k) (zssh_node_info ${ssh_node} -K ${zssh_host}) else