Skip to content

Commit

Permalink
ssh: Declare $prefix closer to use
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Nov 7, 2017
1 parent d2f14a7 commit 2516a25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion completions/ssh
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ _scp()
local cur prev words cword
_init_completion -n : || return

local prefix

_ssh_suboption_check && {
COMPREPLY=( "${COMPREPLY[@]/%/ }" )
Expand Down Expand Up @@ -383,6 +382,8 @@ _scp()
*:*) _scp_remote_files ; return ;;
esac

local prefix

if [[ "$cur" == -F* ]]; then
cur=${cur#-F}
prefix=-F
Expand Down

0 comments on commit 2516a25

Please sign in to comment.