Skip to content

Commit

Permalink
Merge pull request #64 from beyondbill/tmpl-escape
Browse files Browse the repository at this point in the history
Fix escaping bug in sumo source file templating
  • Loading branch information
maimaisie authored Apr 17, 2018
2 parents b147200 + 9d2d25d commit 52c19f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 52c19f4

Please sign in to comment.