diff --git a/run.sh b/run.sh index 15535d8..6914229 100755 --- a/run.sh +++ b/run.sh @@ -49,9 +49,9 @@ generate_user_properties_file() { OLD_IFS=$IFS IFS=$'\n' - while read line; do - line_escape_backslashes=${line//\\/\\\\\\\\} - echo $(eval echo "\"${line_escape_backslashes//\"/\\\"}\"") >> ${to} + while read -r line; do + line_escape_backslashes=${line//\\/\\\\} + printf "%s\n" "$(eval echo "\"${line_escape_backslashes//\"/\\\"}\"")" >> ${to} done <${from} IFS=${OLD_IFS}