Skip to content

Commit a4fee73

Browse files
committed
refactor(scp): rename local var "_dirs{ => _}only" for consistency
1 parent 28e19a2 commit a4fee73

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
@@ -535,15 +535,15 @@ _scp_remote_files()
535535
# @since 2.12
536536
_comp_xfunc_scp_compgen_local_files()
537537
{
538-
local _dirsonly=""
538+
local _dirs_only=""
539539
if [[ ${1-} == -d ]]; then
540-
_dirsonly=set
540+
_dirs_only=set
541541
shift
542542
fi
543543

544544
local files
545545
_comp_expand_glob files '"$cur"*' || return 0
546-
if [[ $_dirsonly ]]; then
546+
if [[ $_dirs_only ]]; then
547547
_comp_compgen -RU files split -l ${1:+-P "$1"} -- "$(
548548
command ls -aF1dL "${files[@]}" 2>/dev/null |
549549
command sed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" \

0 commit comments

Comments
 (0)