File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Copyright 2006 Yann Rouillard <yann@opencsw.org>
4
4
5
- _pkg-get_get_catalog_file ()
5
+ _pkg_get_get_catalog_file ()
6
6
{
7
7
local url=" $1 "
8
8
local catalog_file i conffile
@@ -25,7 +25,7 @@ _pkg-get_get_catalog_file()
25
25
26
26
echo " $catalog_file "
27
27
} &&
28
- _pkg-get ()
28
+ _pkg_get ()
29
29
{
30
30
local cur prev file catalog_file url command
31
31
COMPREPLY=()
@@ -49,7 +49,7 @@ _pkg-get()
49
49
50
50
if [[ -n " $command " ]]; then
51
51
if [[ " $command " == @ (-[Ddi]| describe| download| install) ]]; then
52
- catalog_file=$( _pkg-get_get_catalog_file " $url " )
52
+ catalog_file=$( _pkg_get_get_catalog_file " $url " )
53
53
if [[ -f $catalog_file ]]; then
54
54
local packages_list=$( awk ' $0 ~ /BEGIN PGP SIGNATURE/ { exit } $1 ~ /^Hash:/ || $1 ~ /^ *(-|#|$)/ { next } { print $1 }' $catalog_file )
55
55
COMPREPLY=( $( compgen -W " ${packages_list} " -- ${cur} ) )
@@ -68,6 +68,6 @@ _pkg-get()
68
68
updatecatalog upgrade"
69
69
COMPREPLY=( $( compgen -W " ${commands} " -- ${cur} ) )
70
70
} &&
71
- complete -F _pkg-get pkg-get
71
+ complete -F _pkg_get pkg-get
72
72
73
73
# ex: ts=4 sw=4 et filetype=sh
You can’t perform that action at this time.
0 commit comments