Skip to content

Commit

Permalink
pkg-get: fix $i leak
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jun 29, 2019
1 parent d375b63 commit 07e8dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/pkg-get
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _pkg_get()
return 1
fi

i=${#COMP_WORDS[*]}
local i=${#COMP_WORDS[*]}
while [[ $i -gt 0 ]]; do
if [[ "${COMP_WORDS[--i]}" == -s ]]; then
url="${COMP_WORDS[$((i+1))]}"
Expand Down

0 comments on commit 07e8dc6

Please sign in to comment.