Skip to content

Commit 353455d

Browse files
committed
[build-ttf.sh] fixes incorrect executable path checks with system installed ttfautohint builds
1 parent dd71f61 commit 353455d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build-ttf.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,16 @@ if [ "$1" = "--system" ]
6363
echo " "
6464
fi
6565

66+
# ttfautohint path test for default builds
6667
# test for local ttfautohint install using repository provided install script and defined ttfautohint version (and its dependencies)
6768
# no tests for Python build dependencies here because they are always installed by default & tested in the pipenv virtualenv before these steps
68-
if ! [ -f "$TTFAH" ]; then
69-
echo "Unable to identify the expected local install path for ttfautohint. Please install and try again." 1>&2
70-
INSTALLFLAG=1
69+
if [ $# -eq 0 ]; then
70+
if ! [ -f "$TTFAH" ]; then
71+
echo "Unable to identify the expected local install path for ttfautohint. Please install and try again." 1>&2
72+
INSTALLFLAG=1
73+
fi
7174
fi
7275

73-
7476
# If any of the dependency checks failed, exit the build and notify user
7577
if [ $INSTALLFLAG -eq 1 ]; then
7678
echo "Build canceled." 1>&2

0 commit comments

Comments
 (0)