diff --git a/README.md b/README.md index cef9309b..dc8a7faf 100755 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ This example uses init container to download and install plugin. 1. To download plugin build and move contents into Grafana plugins directory: - ```bash + ```sh ver=$(curl -s https://api.github.com/repos/VictoriaMetrics/victoriametrics-datasource/releases/latest | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1) curl -L https://github.com/VictoriaMetrics/victoriametrics-datasource/releases/download/$ver/victoriametrics-datasource-$ver.tar.gz -o /var/lib/grafana/plugins/vm-plugin.tar.gz tar -xf /var/lib/grafana/plugins/vm-plugin.tar.gz -C /var/lib/grafana/plugins/