diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2023-03-31 23:39:54 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2023-03-31 23:39:54 +0500 |
commit | 5c938acd334d8d33bbdb5a116fd11a7d885aaa40 (patch) | |
tree | 95ebf38ec5b53bbb6fb1349a52835577e3d6660a /eclass | |
parent | net-p2p/fragments: drop duplicate xdg functions (diff) | |
download | guru-5c938acd334d8d33bbdb5a116fd11a7d885aaa40.tar.gz guru-5c938acd334d8d33bbdb5a116fd11a7d885aaa40.tar.bz2 guru-5c938acd334d8d33bbdb5a116fd11a7d885aaa40.zip |
shell-completion.eclass: move EAPI guard
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/shell-completion.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/shell-completion.eclass b/eclass/shell-completion.eclass index 271378c51..008c1c0a0 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: |