Skip to content

Commit 687068c

Browse files
committed
refactor(scp): rename local var "_dirs{ => _}only" for consistency
1 parent 85f66d2 commit 687068c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

completions/ssh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,9 @@ _scp_remote_files()
597597
# @since 2.12
598598
_comp_xfunc_scp_compgen_local_files()
599599
{
600-
local _dirsonly=""
600+
local _dirs_only=""
601601
if [[ ${1-} == -d ]]; then
602-
_dirsonly=set
602+
_dirs_only=set
603603
shift
604604
fi
605605

@@ -611,7 +611,7 @@ _comp_xfunc_scp_compgen_local_files()
611611
_comp_expand_glob files '"$cur_val"*' || return 0
612612
_comp_compgen -RU files split -l ${1:+-P "$1"} -- "$(
613613
command ls -aF1dL "${files[@]}" 2>/dev/null |
614-
_comp_cmd_scp__escape_path ${_dirsonly:+'-d'}
614+
_comp_cmd_scp__escape_path ${_dirs_only:+'-d'}
615615
)"
616616
}
617617

0 commit comments

Comments
 (0)