Skip to content

Commit 1bdc18e

Browse files
committed
fix(cpan2dist): fix leaked variable dir
1 parent c889cf6 commit 1bdc18e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/cpan2dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _cpan2dist()
2323
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
2424
else
2525
local cpandirs=("$HOME/.cpanplus/" "$HOME/.cpan/source/modules/")
26-
local packagelist
26+
local dir packagelist
2727
unset -v packagelist # workaround for localvar_inherit
2828
for dir in "${cpandirs[@]}"; do
2929
[[ -d $dir && -r "$dir/02packages.details.txt.gz" ]] &&

0 commit comments

Comments
 (0)