From 81dc0eb0d60cd29f4bf503b465d102b03792f7e5 Mon Sep 17 00:00:00 2001 From: accel Date: Sun, 19 Mar 2023 14:17:54 +0300 Subject: [PATCH] fix --- zssh.funcs.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zssh.funcs.zsh b/zssh.funcs.zsh index d7ef6c9..5351682 100644 --- a/zssh.funcs.zsh +++ b/zssh.funcs.zsh @@ -200,7 +200,7 @@ function zssh_generate_config4 then sshkey="$zssh_private_keys/$ssh_node.key" zshlibs_log zssh_client "generating '$dst' with key '$sshkey'" - matched="1" + matched=1 rm "$dst" 2> /dev/null for src in "$srcs"/*.sshconf(N) do @@ -209,7 +209,7 @@ function zssh_generate_config4 cat "$src" >> "$dst" printf "\n IdentityFile %s\n\n" "$sshkey" >> "$dst" done - if ! $matched + if ! [[ $matched ]] then zshlibs_log zssh_client "no configs for '$dst'" fi