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>
remotes/origin/3.0
Nico Schottelius 11 years ago
parent 6746ba8279
commit 51c9662475
  1. 2
      cdist/conf/type/__line/gencode-remote

@ -58,7 +58,7 @@ case "$state_should" in
# Only replace ' with '"'"' and keep \ as they are
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)

Loading…
Cancel
Save