From 16ae06f1dce7e9c5a3337f43fe496ad9c6ced59e Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Wed, 16 Jan 2013 13:27:47 -0800 Subject: [PATCH] refactor has_cairo_freetype.sh --- util/has_cairo_freetype.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/has_cairo_freetype.sh b/util/has_cairo_freetype.sh index 2e42a3f..91bdd47 100755 --- a/util/has_cairo_freetype.sh +++ b/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