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

detect wrong replacements

parent 2fbba125
Branches
No related tags found
No related merge requests found
...@@ -78,6 +78,13 @@ if [ $? -ne 0 ]; then ...@@ -78,6 +78,13 @@ if [ $? -ne 0 ]; then
exit 2 exit 2
fi 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 # --- create temporary file to make all replacements in it
cat $tplfile > $tmpfile cat $tplfile > $tmpfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment