mirror of
https://github.com/bitnami/containers.git
synced 2026-02-19 22:17:24 +08:00
[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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user