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)