fix
This commit is contained in:
parent
c5f838c62b
commit
81dc0eb0d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user