Skip to content

Commit 953f9ae

Browse files
authored
Clarify usage of printf over echo for displaying env variables (#213)
1 parent cdb7dc4 commit 953f9ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/modules/ROOT/pages/how-to/use-custom-grafana.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ We recommend to fall back to `GET`.
154154
[NOTE]
155155
====
156156
You need to substitute `$CA`, `$TOKEN`, and `$\{APP_NAMESPACE}` with the values of the environment variables set earlier.
157-
You can easily display their contents using `echo`.
157+
You can easily display their contents using `printf "%s" "$CA"`.
158+
159+
Note that using `echo` to output variables might mangle line breaks and could lead to the configuration failing.
158160
159161
Make sure to not use quotes for the custom query parameters.
160162
Using `namespace="my-app"` will result in permission errors, use `namespace=my-app`.

0 commit comments

Comments
 (0)