use printf instead of echo to avoid bash broken echo builtin

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
remotes/origin/2.3
Nico Schottelius 12 years ago
parent 8a34b7dfea
commit 2932b8343f
  1. 2
      cdist/conf/type/__line/gencode-remote

@ -50,7 +50,7 @@ case "$state_should" in
#
line_sanitised=$(cat "$__object/parameter/line" | sed -e "s/'/'\"'\"'/g" -e 's/\\/\\\\/g')
echo "echo '$line_sanitised' >> $file"
echo "printf '%s\n' '$line_sanitised' >> $file"
;;
absent)

Loading…
Cancel
Save