Skip to content
Snippets Groups Projects
Commit 887ac32a authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Warn on missing replacements; handle Ruby vars with single and double quotes

parent 9b4629bd
Branches
No related tags found
No related merge requests found
......@@ -93,7 +93,10 @@ cat $tplfile > $tmpfile
# --- apply replace rules
grep "^[a-zA-Z]" $replacefile | grep "=" | while read line
do
key=$( echo $line | cut -f 2- -d ":" | cut -f 1 -d "=" )
echo
key=$( echo $line | cut -f 1- -d "=")
echo $key | grep ":" >/dev/null && key=$( echo $key | rev | cut -f 1 -d ":" | rev )
val=$( echo $line | cut -f 2- -d "=" )
# Ruby erb template syntax to write a variable: <% @replace["mykey"] %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment