14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-12-22 15:31:31 +01:00

really halt and print message on validation errors

This commit is contained in:
Jany Belluz 2014-01-20 14:55:37 +01:00
parent fc2ed3ebe0
commit f25bebad88

View File

@ -32,6 +32,7 @@ font.encoding = "AdobeStandard";
font.generate("TeX/f${texFamily}${texCut}8a.pfb", font.generate("TeX/f${texFamily}${texCut}8a.pfb",
flags=("afm", "tfm", "pfm")); flags=("afm", "tfm", "pfm"));
EOF EOF
error=$?
cat > Webfonts/${basename}-decl.css <<EOF cat > Webfonts/${basename}-decl.css <<EOF
@font-face { @font-face {
@ -45,7 +46,6 @@ cat > Webfonts/${basename}-decl.css <<EOF
EOF EOF
error=$?
if [ "x$error" != "x0" ]; then if [ "x$error" != "x0" ]; then
echo -e "\e[1;31mError in ${basename}.\e[0m" echo -e "\e[1;31mError in ${basename}.\e[0m"
if [ "x$error" = "x42" ]; then if [ "x$error" = "x42" ]; then