Skip to content
Snippets Groups Projects
Commit c5103242 authored by Eduardo Gonzalez's avatar Eduardo Gonzalez
Browse files

newline bugfix modified in grafana configmap generator

parent ea91202e
Branches
Tags
No related merge requests found
......@@ -197,9 +197,11 @@ addArrayToConfigMap() {
# File content: Indent 4
cat $file | sed "s/^/ /"
# If source file was not ended properly we add newline character
[ "$(tail -c 1 "$file")" ] && echo
# Dashboard foot
test "$type" = "dashboard" && cat $DASHBOARD_FOOT_FILE
[ "$(tail -c 1 "$file")" ] && echo
done
echo "---"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment