[bitnami/java-min] bugfix: use the right flag for java 1.8 (#77078)

Signed-off-by: juan131 <jariza@vmware.com>
This commit is contained in:
Juan Ariza Toledano 2025-02-07 15:57:38 +01:00 committed by GitHub
parent a84f11a816
commit 44d373ae59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -2,11 +2,19 @@ command:
check-java-version:
exec:
- java
{{- if regexMatch "^1.8.+" .Env.APP_VERSION }}
- --version
exit-status: 0
# Replace "-" with "+" in the version string
stdout:
- {{ .Env.APP_VERSION | replace "-" "+" }}
{{- else }}
- -version
exit-status: 0
# Replace "-" with "_" in the version string
stdout:
- {{ .Env.APP_VERSION | replace "-" "_" }}
{{- end }}
check-hello-world:
exec:
- java