DO NOT USE ECHO WHEN SOMETHING MAY CONTAIN A B-A-C-K-S-L-A-S-H
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
6746ba8279
commit
51c9662475
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ case "$state_should" in
|
||||||
|
|
||||||
# Only replace ' with '"'"' and keep \ as they are
|
# Only replace ' with '"'"' and keep \ as they are
|
||||||
line_sanitised=$(cat "$__object/parameter/line" | sed -e "s/'/'\"'\"'/g")
|
line_sanitised=$(cat "$__object/parameter/line" | sed -e "s/'/'\"'\"'/g")
|
||||||
echo "printf '%s\n' '$line_sanitised' >> $file"
|
printf '%s' "printf '%s\n' '$line_sanitised' >> $file"
|
||||||
|
|
||||||
;;
|
;;
|
||||||
absent)
|
absent)
|
||||||
|
|
Loading…
Reference in a new issue