shell-completion.eclass: move EAPI guard

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-03-31 23:39:54 +05:00
parent 3aeb13f202
commit 5c938acd33

View File

@@ -11,17 +11,17 @@
# for popular shells. It inherits the already widely adopted
# `bash-completion-r1`, thus extending on its functionality.
case ${EAPI} in
8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported"
esac
if [[ ! ${_SHELL_COMPLETION_ECLASS} ]]; then
_SHELL_COMPLETION_ECLASS=1
# Extend bash-completion-r1
inherit bash-completion-r1
case ${EAPI} in
6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI} unsupported."
esac
# @FUNCTION: _shell-completion_get_fishcompdir
# @INTERNAL
# @DESCRIPTION: