Skip to content

Commit

Permalink
fix(ssh-keygen): first arg to ssh query for protocol versions
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed May 22, 2023
1 parent d55f5e6 commit 8a0a71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/ssh-keygen
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ _comp_cmd_ssh_keygen()
return
;;
-*t)
local protocols=$(_comp_xfunc ssh query "$1" protocol-version)
local protocols=$(_comp_xfunc ssh query "" protocol-version)
local types='dsa ecdsa ecdsa-sk ed25519 ed25519-sk rsa'
if [[ $protocols == *1* ]]; then
types+=' rsa1'
Expand Down

0 comments on commit 8a0a71e

Please sign in to comment.