Skip to content

Commit f89c328

Browse files
committed
fix(ssh): work around bash-4.2 nounset
1 parent a72bb91 commit f89c328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/ssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ _comp_xfunc_ssh_options()
8686
)
8787
local -a protocols
8888
_comp_compgen -v protocols -i ssh query ssh protocol-version
89-
if [[ ${protocols[*]} == *1* ]]; then
89+
if [[ ${protocols[*]-} == *1* ]]; then
9090
opts+=(Cipher CompressionLevel Protocol RhostsRSAAuthentication
9191
RSAAuthentication)
9292
fi

0 commit comments

Comments
 (0)