From 38efabc5285b2d45c8f90e334d1fe353634be9e6 Mon Sep 17 00:00:00 2001 From: Beltran Rueda Borrego Date: Tue, 5 Sep 2023 15:15:47 +0000 Subject: [PATCH] Fix os-shell for distros with numbers & versions Signed-off-by: Beltran Rueda Borrego --- .vib/os-shell/goss/os-shell.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vib/os-shell/goss/os-shell.yaml b/.vib/os-shell/goss/os-shell.yaml index dc22658eac8e0..08dc0be725006 100644 --- a/.vib/os-shell/goss/os-shell.yaml +++ b/.vib/os-shell/goss/os-shell.yaml @@ -3,5 +3,5 @@ command: check-distro-version: - exec: grep VERSION_ID /etc/os-release | grep "$(echo $APP_VERSION | sed -E 's|^([0-9]+).*$|\1|g')" + exec: grep VERSION_ID /etc/os-release | grep "$(echo "$APP_VERSION" | sed -E 's|^([0-9]+).*$|\1|g')" exit-status: 0