From 77bf0bae71df6a936e38abad7932c76e4719be47 Mon Sep 17 00:00:00 2001 From: David Gomez Date: Fri, 18 Oct 2024 14:15:30 +0200 Subject: [PATCH] [bitnami/grafana] Fix check-app-version GOSS test Signed-off-by: David Gomez --- .vib/grafana/goss/vars.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vib/grafana/goss/vars.yaml b/.vib/grafana/goss/vars.yaml index 0d0caec143b31..58a17213abc07 100644 --- a/.vib/grafana/goss/vars.yaml +++ b/.vib/grafana/goss/vars.yaml @@ -4,7 +4,7 @@ root_dir: /opt/bitnami version: # HACK: Fix for Grafana X.Y.Z+security-N releases bin_name: bash - flag: -c "if [[ \"$APP_VERSION\" =~ -[0-9]+ ]]; then echo "${APP_VERSION//-[0-9]*/}"; else grafana --version; fi" + flag: -c "if [[ \"$APP_VERSION\" =~ -[0-9]+ ]]; then echo "$(grafana --version|awk '{ print $NF }')-${APP_VERSION#*-}"; else grafana --version|awk '{ print $NF }'; fi" files: - mode: "0664" paths: