[build-woff.sh] refactored default build approach path test for dependency

pull/416/head
Chris Simpkins 2018-03-15 15:12:00 +07:00
parent 353455d38e
commit 0da551bd94
1 changed files with 4 additions and 2 deletions

@ -64,14 +64,16 @@ if [ "$1" = "--system" ]; then
# display version of installed sfnt2woff-zopfli
echo "Beginning web font build with $SFNTWOFF_BIN"
fi
else
fi
# test for sfnt2woff-zopfli with default build approach
if [ $# -eq 0 ]; then
if [ -f "$SFNTWOFF_BIN" ]; then
echo "Beginning web font build with $SFNTWOFF_BIN"
else
echo "Unable to locate sfnt2woff-zopfli on the path $SFNTWOFF_BIN. Please install this build dependency and then repeat your build attempt." 1>&2
exit 1
fi
fi
# Build woff files from ttf files