Use printf instead of echo for printing collected warnings in kickstart.sh. (#13002)
Use printf instead of echo for printing collected warnings. This ensures that the formatting actually happens correctly.
Austin S. Hemmelgarn committed
May 25, 2022 at 07:58 UTC
970261926283c5fcb615e3d24b22fe7fcc2a34f9
1 file changed
+3
-2
packaging/installer/kickstart.sh
+3
-2
@@ -381,8 +381,9 @@ cleanup() {
381
deferred_warnings() {
382
if [ -n "${NETDATA_WARNINGS}" ]; then
383
printf >&2 "%s\n" "The following non-fatal warnings or errors were encountered:"
384
- echo >&2 "${NETDATA_WARNINGS}"
385
- printf >&2 "\n"
384
+ # shellcheck disable=SC2059
385
+ printf >&2 "${NETDATA_WARNINGS}"
386
+ printf >&2 "\n\n"
387
fi
388
}
389