summaryrefslogtreecommitdiff
path: root/completions/pkg-get
diff options
context:
space:
mode:
Diffstat (limited to 'completions/pkg-get')
-rw-r--r--completions/pkg-get2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/pkg-get b/completions/pkg-get
index ea300b8b..2f251338 100644
--- a/completions/pkg-get
+++ b/completions/pkg-get
@@ -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))]}"