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