From: Jan Schmidt Date: Fri, 17 Apr 2009 14:18:46 +0000 (+0100) Subject: hooks: Don't get confused by indent --version strings containing spaces. X-Git-Tag: upstream/20130618~216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ab11d17cb8e4d1ed755da7accac9630d567a097;p=platform%2Fupstream%2Fgst-common.git hooks: Don't get confused by indent --version strings containing spaces. Use some quote marks around the indent existence checks. --- 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