use printf instead of echo to avoid bash broken echo builtin

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-11-25 19:08:46 +01:00
parent 8a34b7dfea
commit 2932b8343f

View file

@ -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)