[build-ttf.sh] fixes incorrect executable path checks with system installed ttfautohint builds

pull/416/head
Chris Simpkins 2018-03-15 15:10:42 +07:00
parent dd71f61df8
commit 353455d38e
1 changed files with 6 additions and 4 deletions

@ -63,14 +63,16 @@ if [ "$1" = "--system" ]
echo " "
fi
# ttfautohint path test for default builds
# test for local ttfautohint install using repository provided install script and defined ttfautohint version (and its dependencies)
# no tests for Python build dependencies here because they are always installed by default & tested in the pipenv virtualenv before these steps
if ! [ -f "$TTFAH" ]; then
echo "Unable to identify the expected local install path for ttfautohint. Please install and try again." 1>&2
INSTALLFLAG=1
if [ $# -eq 0 ]; then
if ! [ -f "$TTFAH" ]; then
echo "Unable to identify the expected local install path for ttfautohint. Please install and try again." 1>&2
INSTALLFLAG=1
fi
fi
# If any of the dependency checks failed, exit the build and notify user
if [ $INSTALLFLAG -eq 1 ]; then
echo "Build canceled." 1>&2