Skip to content

Commit

Permalink
Fix escaping in sumo source file templating
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Huang committed Apr 13, 2018
1 parent b147200 commit 9d2d25d
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 9d2d25d

Please sign in to comment.