diff --git a/hack/grafana-dashboards-configmap-generator/bin/grafana_dashboards_generate.sh b/hack/grafana-dashboards-configmap-generator/bin/grafana_dashboards_generate.sh
index 93e91801a5556125de4cb6f08771dd4c0e728eaf..4a328959ee2fa8b2ef61d2ba413eddac9b6aabc3 100755
--- a/hack/grafana-dashboards-configmap-generator/bin/grafana_dashboards_generate.sh
+++ b/hack/grafana-dashboards-configmap-generator/bin/grafana_dashboards_generate.sh
@@ -199,6 +199,7 @@ addArrayToConfigMap() {
 
     # Dashboard foot
     test "$type" = "dashboard" && cat $DASHBOARD_FOOT_FILE
+    [ "$(tail -c 1 "$file")" ] && echo
   done
   echo "---"