This commit is contained in:
accel 2023-03-19 14:17:54 +03:00
parent c5f838c62b
commit 81dc0eb0d6

View File

@ -200,7 +200,7 @@ function zssh_generate_config4
then then
sshkey="$zssh_private_keys/$ssh_node.key" sshkey="$zssh_private_keys/$ssh_node.key"
zshlibs_log zssh_client "generating '$dst' with key '$sshkey'" zshlibs_log zssh_client "generating '$dst' with key '$sshkey'"
matched="1" matched=1
rm "$dst" 2> /dev/null rm "$dst" 2> /dev/null
for src in "$srcs"/*.sshconf(N) for src in "$srcs"/*.sshconf(N)
do do
@ -209,7 +209,7 @@ function zssh_generate_config4
cat "$src" >> "$dst" cat "$src" >> "$dst"
printf "\n IdentityFile %s\n\n" "$sshkey" >> "$dst" printf "\n IdentityFile %s\n\n" "$sshkey" >> "$dst"
done done
if ! $matched if ! [[ $matched ]]
then then
zshlibs_log zssh_client "no configs for '$dst'" zshlibs_log zssh_client "no configs for '$dst'"
fi fi