projects
/
platform
/
upstream
/
gst-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3941ea
)
hooks: Don't get confused by indent --version strings containing spaces.
author
Jan Schmidt
<thaytan@noraisin.net>
Fri, 17 Apr 2009 14:18:46 +0000
(15:18 +0100)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/hooks/pre-commit.hook
b/hooks/pre-commit.hook
index
2c6c039
..
4d4682d
100755
(executable)
--- 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