Skip to content
Snippets Groups Projects
Commit 07aacbad 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 f78ecd47
No related branches found
No related tags found
No related merge requests found
...@@ -93,9 +93,7 @@ cat $tplfile > $tmpfile ...@@ -93,9 +93,7 @@ cat $tplfile > $tmpfile
# --- apply replace rules # --- apply replace rules
grep "^[a-zA-Z]" $replacefile | grep "=" | while read line grep "^[a-zA-Z]" $replacefile | grep "=" | while read line
do do
echo key=$( echo $line | cut -f 1 -d "=" )
key=$( echo $line | cut -f 1 -d "=")
echo $key | grep ":" >/dev/null && key=$( echo $key | rev | cut -f 1 -d ":" | rev ) echo $key | grep ":" >/dev/null && key=$( echo $key | rev | cut -f 1 -d ":" | rev )
val=$( echo $line | cut -f 2- -d "=" ) val=$( echo $line | cut -f 2- -d "=" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment