summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-17 23:12:35 +0000
committerrubidium <rubidium@openttd.org>2008-12-17 23:12:35 +0000
commitb2a1e2a8c2e6ae30c97bfdbdcb3ae7f2495639b4 (patch)
tree9b307394053fb7c4eaf94045b4bf6474bca1a054
parent765c67622ea888235966ed8caa6a42a5b3c2d8e7 (diff)
downloadopenttd-b2a1e2a8c2e6ae30c97bfdbdcb3ae7f2495639b4.tar.xz
(svn r14688) -Change: silence the "command not found" error when trying to find the svn/git/hg binary.
-rw-r--r--config.lib6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.lib b/config.lib
index 211761953..216e18063 100644
--- a/config.lib
+++ b/config.lib
@@ -860,13 +860,13 @@ check_params() {
revision="`cat $ROOT_DIR/version`"
log 1 "checking revision... $revision"
- elif [ -d "$ROOT_DIR/.svn" ] && [ -n "`svn help`" ]; then
+ elif [ -d "$ROOT_DIR/.svn" ] && [ -n "`svn help 2>/dev/null`" ]; then
revision=""
log 1 "checking revision... svn detection"
- elif [ -d "$ROOT_DIR/.git" ] && [ -n "`git help`" ]; then
+ elif [ -d "$ROOT_DIR/.git" ] && [ -n "`git help 2>/dev/null`" ]; then
revision=""
log 1 "checking revision... git detection"
- elif [ -d "$ROOT_DIR/.hg" ] && [ -n "`hg help`" ]; then
+ elif [ -d "$ROOT_DIR/.hg" ] && [ -n "`hg help 2>/dev/null`" ]; then
revision=""
log 1 "checking revision... hg detection"
else