Skip to content

Commit 0da551b

Browse files
committed
[build-woff.sh] refactored default build approach path test for dependency
1 parent 353455d commit 0da551b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-woff.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,16 @@ if [ "$1" = "--system" ]; then
6464
# display version of installed sfnt2woff-zopfli
6565
echo "Beginning web font build with $SFNTWOFF_BIN"
6666
fi
67-
else
67+
fi
68+
69+
# test for sfnt2woff-zopfli with default build approach
70+
if [ $# -eq 0 ]; then
6871
if [ -f "$SFNTWOFF_BIN" ]; then
6972
echo "Beginning web font build with $SFNTWOFF_BIN"
7073
else
7174
echo "Unable to locate sfnt2woff-zopfli on the path $SFNTWOFF_BIN. Please install this build dependency and then repeat your build attempt." 1>&2
7275
exit 1
7376
fi
74-
7577
fi
7678

7779
# Build woff files from ttf files

0 commit comments

Comments
 (0)