From 39103b63cfec10fdf854ef6e1f1d3759e39bf4ba Mon Sep 17 00:00:00 2001 From: David Gomez Date: Fri, 18 Oct 2024 14:28:31 +0200 Subject: [PATCH] [bitnami/grafana] Fix check-app-version GOSS test (#73404) 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: