From bbd5efa596170e79613c7b2305171a8108e52080 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 30 Mar 2011 07:06:08 +0000 Subject: fix get-scala-revision script for the case when... fix get-scala-revision script for the case when svn prints some warnings. no review --- tools/get-scala-revision | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/get-scala-revision') diff --git a/tools/get-scala-revision b/tools/get-scala-revision index 685ce67a6d..4d6e67f79e 100755 --- a/tools/get-scala-revision +++ b/tools/get-scala-revision @@ -16,7 +16,8 @@ fi cd $DIR if [ -d .svn ]; then - svn info . | grep ^Revision | sed 's/Revision: //' + # 2>&1 to catch also error output (e.g. svn warnings) + svn info . 2>&1 | grep ^Revision | sed 's/Revision: //' elif [ -d .git ]; then GIT_PAGER=cat # this grabs more than one line because otherwise if you have local -- cgit v1.2.3