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 22#
33# Copyright 2006 Yann Rouillard <[email protected] >44
5- _pkg-get_get_catalog_file ()
5+ _pkg_get_get_catalog_file ()
66{
77 local url=" $1 "
88 local catalog_file i conffile
@@ -25,7 +25,7 @@ _pkg-get_get_catalog_file()
2525
2626 echo " $catalog_file "
2727} &&
28- _pkg-get ()
28+ _pkg_get ()
2929{
3030 local cur prev file catalog_file url command
3131 COMPREPLY=()
@@ -49,7 +49,7 @@ _pkg-get()
4949
5050 if [[ -n " $command " ]]; then
5151 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 " )
5353 if [[ -f $catalog_file ]]; then
5454 local packages_list=$( awk ' $0 ~ /BEGIN PGP SIGNATURE/ { exit } $1 ~ /^Hash:/ || $1 ~ /^ *(-|#|$)/ { next } { print $1 }' $catalog_file )
5555 COMPREPLY=( $( compgen -W " ${packages_list} " -- ${cur} ) )
@@ -68,6 +68,6 @@ _pkg-get()
6868 updatecatalog upgrade"
6969 COMPREPLY=( $( compgen -W " ${commands} " -- ${cur} ) )
7070} &&
71- complete -F _pkg-get pkg-get
71+ complete -F _pkg_get pkg-get
7272
7373# ex: ts=4 sw=4 et filetype=sh
You can’t perform that action at this time.
0 commit comments