From 6ab11d17cb8e4d1ed755da7accac9630d567a097 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 17 Apr 2009 15:18:46 +0100 Subject: [PATCH] hooks: Don't get confused by indent --version strings containing spaces. Use some quote marks around the indent existence checks. --- hooks/pre-commit.hook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/pre-commit.hook b/hooks/pre-commit.hook index 2c6c039..4d4682d 100755 --- a/hooks/pre-commit.hook +++ b/hooks/pre-commit.hook @@ -8,9 +8,9 @@ # so check for that first. version=`gnuindent --version 2>/dev/null` -if test x$version = x; then +if test "x$version" = "x"; then version=`indent --version 2>/dev/null` - if test x$version = x; then + if test "x$version" = "x"; then echo "GStreamer git pre-commit hook:" echo "Did not find GNU indent, please install it before continuing." exit 1 -- 2.7.4