From 5c938acd334d8d33bbdb5a116fd11a7d885aaa40 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Fri, 31 Mar 2023 23:39:54 +0500 Subject: [PATCH] shell-completion.eclass: move EAPI guard Signed-off-by: Anna (cybertailor) Vyalkova --- eclass/shell-completion.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/shell-completion.eclass b/eclass/shell-completion.eclass index 271378c513..008c1c0a0e 100644 --- a/eclass/shell-completion.eclass +++ b/eclass/shell-completion.eclass @@ -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: