Browse Source

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

Chris Simpkins 7 years ago
parent
commit
353455d38e
1 changed files with 6 additions and 4 deletions
  1. 6 4
      build-ttf.sh

+ 6 - 4
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