[bitnami/os-shell] Fix os-shell for distros with numbers & strings (#47435)

* Fix os-shell for distros with numbers & versions

* Fix os-shell for distros with numbers & versions

Signed-off-by: Beltran Rueda Borrego <beltranrueda@vmware.com>

* Fix os-shell for distros with numbers & versions

Signed-off-by: Beltran Rueda Borrego <beltranrueda@vmware.com>

---------

Signed-off-by: Beltran Rueda Borrego <beltranrueda@vmware.com>
This commit is contained in:
Beltran
2023-09-05 17:16:13 +02:00
committed by GitHub
parent 5dfb8cbaf1
commit ebc21ec6d5

View File

@@ -3,7 +3,5 @@
command:
check-distro-version:
exec: grep VERSION_ID /etc/os-release
exec: grep VERSION_ID /etc/os-release | grep "$(echo "$APP_VERSION" | sed -E 's|^([0-9]+).*$|\1|g')"
exit-status: 0
stdout:
- {{ .Env.APP_VERSION }}