From 0d73c943ffaa7ff33ddd481ccf93ae36604f0bc1 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Thu, 27 May 2021 14:43:01 +0200 Subject: [PATCH] detect wrong replacements --- bin/create_config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/create_config.sh b/bin/create_config.sh index edbdbd7..8e883c0 100755 --- a/bin/create_config.sh +++ b/bin/create_config.sh @@ -78,6 +78,13 @@ if [ $? -ne 0 ]; then exit 2 fi +echo --- Replacements to apply: +grep "^[a-zA-Z]" $replacefile | grep "=" +if [ $? -ne 0 ]; then + _err "ERROR: No replacements were found ... wrong syntax? Use KEY = VALUE." + exit 2 +fi + # --- create temporary file to make all replacements in it cat $tplfile > $tmpfile -- GitLab