dev-util/github-cli: Fix name for the bash completion

The completion file ought to have the same name as the binary
it tries to complete. Otherwise, it can't be dynamically loaded.

Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
This commit is contained in:
Alex Turbov 2021-08-10 15:57:56 +03:00 committed by Julian Ospald
parent 1ec56f1125
commit 038b4e1de3
Signed by untrusted user: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -30,8 +30,8 @@ src_compile() {
emake
emake manpages
edo go run ./cmd/gh completion -s bash > gh.bash-completion
edo go run ./cmd/gh completion -s zsh > _gh
edo go run ./cmd/gh completion -s bash > gh.bash-completion
edo go run ./cmd/gh completion -s zsh > _gh
esandbox enable_net
}
@ -40,7 +40,7 @@ src_install() {
emagicdocs
doman share/man/man?/gh*.?
dobashcompletion gh.bash-completion
dobashcompletion gh.bash-completion gh
dozshcompletion _gh
}