(svn r14688) -Change: silence the "command not found" error when trying to find the svn/git/hg binary.
authorrubidium
Wed, 17 Dec 2008 23:12:35 +0000
changeset 10435 849b45cca2e4
parent 10434 3659467c844c
child 10436 8d3a9fbe8f19
(svn r14688) -Change: silence the "command not found" error when trying to find the svn/git/hg binary.
config.lib
--- a/config.lib	Wed Dec 17 23:08:11 2008 +0000
+++ b/config.lib	Wed Dec 17 23:12:35 2008 +0000
@@ -860,13 +860,13 @@
 			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