summaryrefslogtreecommitdiff
path: root/completions/pkgutil
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-01-24 19:24:09 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-01-24 19:24:09 -0300
commit019f3cc463db63abc6460f97deb488deec43840b (patch)
tree08cd5387d6c8af6f688d6468c7e2ae9f25c449be /completions/pkgutil
parent5732da2af736c40cf693354485446ab4867ecb4d (diff)
downloadbash-completion-019f3cc463db63abc6460f97deb488deec43840b.tar.gz
New upstream version 2.10upstream/2.10
Diffstat (limited to 'completions/pkgutil')
-rw-r--r--completions/pkgutil2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/pkgutil b/completions/pkgutil
index bafb9aab..febc2135 100644
--- a/completions/pkgutil
+++ b/completions/pkgutil
@@ -21,7 +21,7 @@ _pkgutil()
declare -a configuration_files=("/opt/csw/etc/pkgutil.conf" "/etc/opt/csw/pkgutil.conf")
declare -a catalog_files=()
- i=$cword
+ local i=$cword
while [[ $((i--)) -gt 1 ]]; do
if [[ "${words[$i]}" == -@(t|-temp) ]]; then
local url="${words[$((i+1))]}"