Skip to content

Commit

Permalink
[bitnami/grafana] Fix check-app-version GOSS test (#73404)
Browse files Browse the repository at this point in the history
Signed-off-by: David Gomez <[email protected]>
  • Loading branch information
dgomezleon authored Oct 18, 2024
1 parent 68ce5b6 commit 39103b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vib/grafana/goss/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 39103b6

Please sign in to comment.