Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactor has_cairo_freetype.sh

  • Loading branch information...
commit 16ae06f1dce7e9c5a3337f43fe496ad9c6ced59e 1 parent 930d5be
@tj tj authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 util/has_cairo_freetype.sh
View
8 util/has_cairo_freetype.sh
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
-has_cairo_freetyep() {
- pkg-config cairo --cflags-only-I | grep -E "freetype2" && return 0
- return 1;
+has_freetype() {
+ pkg-config cairo --cflags-only-I | grep freetype2
}
-has_cairo_freetyep $1 > /dev/null
+has_freetype > /dev/null
+
if test $? -eq 0; then
echo true
else
Please sign in to comment.
Something went wrong with that request. Please try again.