summaryrefslogtreecommitdiff
path: root/tools/get-scala-revision
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2011-03-30 07:06:08 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2011-03-30 07:06:08 +0000
commitbbd5efa596170e79613c7b2305171a8108e52080 (patch)
treeb42d71ba5313995f0fc9fa35a478044c3aa53265 /tools/get-scala-revision
parent5691a3900dd81cfaaa25e618828d854bed277039 (diff)
downloadscala-bbd5efa596170e79613c7b2305171a8108e52080.tar.gz
scala-bbd5efa596170e79613c7b2305171a8108e52080.tar.bz2
scala-bbd5efa596170e79613c7b2305171a8108e52080.zip
fix get-scala-revision script for the case when...
fix get-scala-revision script for the case when svn prints some warnings. no review
Diffstat (limited to 'tools/get-scala-revision')
-rwxr-xr-xtools/get-scala-revision3
1 files changed, 2 insertions, 1 deletions
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