ref(bootstrap): use -- in printf -- '%s' "${foo}" just to be safe

This commit is contained in:
AJ ONeal
2023-11-18 19:04:37 -07:00
parent 24f6703a2d
commit 7fe17220b7
+2 -2
View File
@@ -66,9 +66,9 @@ fn_printf() { (
a_text="${2}"
if fn_is_tty; then
#shellcheck disable=SC2059
printf "${a_style}" "${a_text}"
printf -- "${a_style}" "${a_text}"
else
printf '%s' "${a_text}"
printf -- '%s' "${a_text}"
fi
); }