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

do not abort on templates without replacement - show just a warning

parent cb85a379
Branches
No related tags found
No related merge requests found
...@@ -121,10 +121,14 @@ echo ...@@ -121,10 +121,14 @@ echo
echo --- Changes: echo --- Changes:
diff "$tplfile" "$tmpfile" diff "$tplfile" "$tmpfile"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
_err "ERROR: template was unchanged. Check placeholders in $tplfile and replacements:" _warn "WARNING:"
echo Content of relacement files: _warn "The template was unchanged and will be written directly as output file without any changes."
cat $replacefile _warn "Replacements in $tplfile: $(grep '<\%\=\ *\@replace\[' ${tplfile} | wc -l )"
exit 3 grep '<\%\=\ *\@replace\[' ${tplfile}
echo
# echo Content of relacement files:
# cat $replacefile
# exit 3
fi fi
echo echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment