Skip to content

Commit e194c31

Browse files
committed
pkg-get: Don't use hyphens in function names
1 parent 5da97ee commit e194c31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

completions/pkg-get

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Copyright 2006 Yann Rouillard <yann@opencsw.org>
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

0 commit comments

Comments
 (0)