From 2932b8343f9c743e58cb51663b627d385f4c0cac Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 25 Nov 2013 19:08:46 +0100 Subject: [PATCH] use printf instead of echo to avoid bash broken echo builtin Signed-off-by: Nico Schottelius --- cdist/conf/type/__line/gencode-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__line/gencode-remote b/cdist/conf/type/__line/gencode-remote index 69f4d67a..1c46c16c 100755 --- a/cdist/conf/type/__line/gencode-remote +++ b/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)