Permalink
Browse files

refactor has_cairo_freetype.sh

  • Loading branch information...
1 parent 930d5be commit 16ae06f1dce7e9c5a3337f43fe496ad9c6ced59e @tj tj committed Jan 16, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 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

0 comments on commit 16ae06f

Please sign in to comment.