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: