From b6447d74bc9de9d8c3602158f28f84c985922ee1 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 1 Mar 2021 15:18:51 +0100 Subject: [PATCH] bat: use the first found file for completions somehow it is possible to end up with 2 bat-$hash dir that contain the completions --- srcpkgs/bat/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/bat/template b/srcpkgs/bat/template index 351f359cd1a..05680e52a9d 100644 --- a/srcpkgs/bat/template +++ b/srcpkgs/bat/template @@ -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 }