From 07aacbadc06c7b9a8ba7165067ba866c6c5584b9 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Thu, 27 May 2021 15:40:34 +0200
Subject: [PATCH] Warn on missing replacements; handle Ruby vars with single
 and double quotes

---
 bin/create_config.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/create_config.sh b/bin/create_config.sh
index 37e3cc5..eb45e9c 100755
--- a/bin/create_config.sh
+++ b/bin/create_config.sh
@@ -93,9 +93,7 @@ cat $tplfile > $tmpfile
 # --- apply replace rules
 grep "^[a-zA-Z]" $replacefile | grep "=" | while read line
 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 )
     val=$( echo $line | cut -f 2- -d "=" )
 
-- 
GitLab