diff options
author | rubidium <rubidium@openttd.org> | 2008-12-17 23:12:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-17 23:12:35 +0000 |
commit | ade1802e04c777a9e80fc477a9140de9803a4c98 (patch) | |
tree | 9b307394053fb7c4eaf94045b4bf6474bca1a054 | |
parent | b85eb5da8f741f612027b45b4037cd771a8214c7 (diff) | |
download | openttd-ade1802e04c777a9e80fc477a9140de9803a4c98.tar.xz |
(svn r14688) -Change: silence the "command not found" error when trying to find the svn/git/hg binary.
-rw-r--r-- | config.lib | 6 |
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 |