This commit is contained in:
MatMoul 2023-01-14 15:56:14 +01:00
parent 4af301a7a2
commit 80e252f91b

View File

@ -5,7 +5,7 @@ _pkgbuilder() {
local cur prev words cword args local cur prev words cword args
_init_completion || return _init_completion || return
local -r cmdargs="list info create build bump checkupdate update checkupdateall updateall" local -r cmdargs="list info create build bump checkupdate update pushtoaur checkupdateall updateall"
local -r cnfargs="--help --cnf --notify --nopush --dry-run --dbg" local -r cnfargs="--help --cnf --notify --nopush --dry-run --dbg"
#local cnffile=/etc/pkgbuilder/config #local cnffile=/etc/pkgbuilder/config
local pkgdir="/etc/pkgbuilder/packages" local pkgdir="/etc/pkgbuilder/packages"
@ -41,7 +41,7 @@ _pkgbuilder() {
COMPREPLY=($(compgen -W "${MDLLIST}" -- "${COMP_WORDS[COMP_CWORD]}")) COMPREPLY=($(compgen -W "${MDLLIST}" -- "${COMP_WORDS[COMP_CWORD]}"))
return return
;; ;;
info | build | bump | checkupdate | update) info | build | bump | checkupdate | update | pushtoaur)
local -r PKGLIST=$(\ls ${pkgdir}) local -r PKGLIST=$(\ls ${pkgdir})
# shellcheck disable=SC2207 # shellcheck disable=SC2207
COMPREPLY=($(compgen -W "${PKGLIST}" -- "${COMP_WORDS[COMP_CWORD]}")) COMPREPLY=($(compgen -W "${PKGLIST}" -- "${COMP_WORDS[COMP_CWORD]}"))