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

View File

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