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