commit: 0faca49bcdd7c4ffef47661de51ce6d562ad6c89
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 11 10:28:59 2025 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jan 14 12:53:35 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0faca49b
eapi.sh: Make bash-5.0 test explicit
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
bin/eapi.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/eapi.sh b/bin/eapi.sh
index 224ec0e1c8..3ea24cbb06 100644
--- a/bin/eapi.sh
+++ b/bin/eapi.sh
@@ -273,7 +273,7 @@ ___eapi_bash_4_2() {
}
___eapi_bash_5_0() {
- true
+ [[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3|4|5|6|7)$ ]]
}
___eapi_has_ENV_UNSET() {