[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:
parent
a84f11a816
commit
44d373ae59
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue