diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-04-17 15:18:46 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-04-17 15:19:32 +0100 |
commit | 6ab11d17cb8e4d1ed755da7accac9630d567a097 (patch) | |
tree | 2b7ebf28be84e7e1f0fa5826a444efd54e3def47 /hooks | |
parent | b3941ea131db2d85d339a6bcf500a58bd63df0d5 (diff) |
hooks: Don't get confused by indent --version strings containing spaces.
Use some quote marks around the indent existence checks.
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/pre-commit.hook | 4 |
1 files 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 |