hooks: Don't get confused by indent --version strings containing spaces.
authorJan Schmidt <thaytan@noraisin.net>
Fri, 17 Apr 2009 14:18:46 +0000 (15:18 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Fri, 17 Apr 2009 14:19:32 +0000 (15:19 +0100)
Use some quote marks around the indent existence checks.

hooks/pre-commit.hook

index 2c6c039..4d4682d 100755 (executable)
@@ -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