diff --git a/hack/scripts/generate-dashboards-configmap.sh b/hack/scripts/generate-dashboards-configmap.sh index 611403179da38c38699907994e22af6d736a552d..8cd76adcfa45f598e2d1ca80535c885fce70902e 100755 --- a/hack/scripts/generate-dashboards-configmap.sh +++ b/hack/scripts/generate-dashboards-configmap.sh @@ -36,7 +36,7 @@ for f in assets/grafana/generated/*-dashboard.json do basefilename=$(basename $f) echo " $basefilename: |+" - if [ "$basefilename" -eq "etcd-dashboard.json" ]; then + if [ "$basefilename" = "etcd-dashboard.json" ]; then hack/scripts/wrap-dashboard.sh $f prometheus-etcd | sed "s/^/ /g" else hack/scripts/wrap-dashboard.sh $f prometheus-k8s | sed "s/^/ /g" diff --git a/hack/scripts/wrap-dashboard.sh b/hack/scripts/wrap-dashboard.sh index 02b1c5317ae1a35cc6c0bcb17cc4dc19d5dcbf8e..a2ac854cf55aee76929916cbf8cca7afa37dbb76 100755 --- a/hack/scripts/wrap-dashboard.sh +++ b/hack/scripts/wrap-dashboard.sh @@ -24,7 +24,7 @@ dashboardjson=$1 datasource_name=$2 inputname="DS_PROMETHEUS" -if [ "$datasource_name" -eq "prometheus-etcd" ]; then +if [ "$datasource_name" = "prometheus-etcd" ]; then $inputname="DS_PROMETHEUS-ETCD" fi