Skip to content

Commit 82ca8d9

Browse files
committed
fix(scp): nounset mode error on unknown suboption, bash 4.2
1 parent 5caa2bc commit 82ca8d9

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
@@ -515,7 +515,7 @@ _comp_cmd_scp()
515515
_comp_cmd_ssh__configfile
516516

517517
_comp_xfunc_ssh_suboption_check && {
518-
COMPREPLY=("${COMPREPLY[@]/%/ }")
518+
((${#COMPREPLY[@]})) && COMPREPLY=("${COMPREPLY[@]/%/ }")
519519
return
520520
}
521521

0 commit comments

Comments
 (0)