Skip to content

Commit

Permalink
app-crypt/tpm2-tools: Exclude bash completion for tpm2_tr_encode
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/925860
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
  • Loading branch information
salahcoronya committed Mar 8, 2024
1 parent 34a0a71 commit 88e1d59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app-crypt/tpm2-tools/tpm2-tools-5.6-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ src_install() {
local utils=( "${ED}"/usr/bin/tpm2_* )
utils=("${utils[@]##*/}")
# these utiltites don't have bash completions
local nobashcomp=( tpm2_encodeobject tpm2_getpolicydigest tpm2_sessionconfig )
local nobashcomp=( tpm2_encodeobject tpm2_getpolicydigest\
tpm2_sessionconfig tpm2_tr_encode)
mapfile -d $'\0' -t utils < <(printf '%s\0' "${utils[@]}" | grep -Ezvw "${nobashcomp[@]/#/-e}")
bashcomp_alias tpm2 "${utils[@]}"
}

0 comments on commit 88e1d59

Please sign in to comment.