bat: use the first found file for completions

somehow it is possible to end up with 2 bat-$hash dir that contain the completions
This commit is contained in:
John 2021-03-01 15:18:51 +01:00
parent e5a326e32a
commit b6447d74bc

View file

@ -22,11 +22,11 @@ post_install() {
vlicense LICENSE-MIT
vdoc README.md
# The manual page is hidden somewhere deep in the build tree
manpage=$(find ${wrksrc}/target -name bat.1)
manpage=$(find ${wrksrc}/target -name bat.1 | head -n1)
vman ${manpage}
# Completions are also hidden somewhere deep in the build tree
fish_completion=$(find ${wrksrc}/target -name bat.fish)
fish_completion=$(find ${wrksrc}/target -name bat.fish | head -n1)
vcompletion ${fish_completion} fish
zsh_completion=$(find ${wrksrc}/target -name bat.zsh)
zsh_completion=$(find ${wrksrc}/target -name bat.zsh | head -n1)
vcompletion ${zsh_completion} zsh
}