From 353455d38eff8e9b72e7cf8056e9bbd86c81cc53 Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Thu, 15 Mar 2018 15:10:42 -0400 Subject: [PATCH] [build-ttf.sh] fixes incorrect executable path checks with system installed ttfautohint builds --- build-ttf.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build-ttf.sh b/build-ttf.sh index 5a6e6edbe..54fe629a0 100755 --- a/build-ttf.sh +++ b/build-ttf.sh @@ -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