From ebc21ec6d5a6661e8db0d3c0b932aa0e7b8c7629 Mon Sep 17 00:00:00 2001 From: Beltran Date: Tue, 5 Sep 2023 17:16:13 +0200 Subject: [PATCH] [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 * Fix os-shell for distros with numbers & versions Signed-off-by: Beltran Rueda Borrego --------- Signed-off-by: Beltran Rueda Borrego --- .vib/os-shell/goss/os-shell.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.vib/os-shell/goss/os-shell.yaml b/.vib/os-shell/goss/os-shell.yaml index ff963ebf2eec..08dc0be72500 100644 --- a/.vib/os-shell/goss/os-shell.yaml +++ b/.vib/os-shell/goss/os-shell.yaml @@ -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 }}