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

---
 bin/create_config.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/create_config.sh b/bin/create_config.sh
index 7aa0ade..37e3cc5 100755
--- a/bin/create_config.sh
+++ b/bin/create_config.sh
@@ -95,7 +95,7 @@ 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