HADOOP-7038. saveVersion script includes an additional \r while running whoami under windows. Contributed by Wang Xu.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1044490 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Konstantin Boudnik 2010-12-10 19:48:53 +00:00
parent dc24696260
commit bde004dcd0
2 changed files with 4 additions and 1 deletions

View File

@ -394,6 +394,9 @@ Release 0.22.0 - Unreleased
HADOOP-7057. IOUtils.readFully and IOUtils.skipFully have typo in
exception creation's message. (cos)
HADOOP-7038. saveVersion script includes an additional \r while running
whoami under windows. (Wang Xu via cos)
Release 0.21.1 - Unreleased
IMPROVEMENTS

View File

@ -23,7 +23,7 @@ unset LC_CTYPE
unset LC_TIME
version=$1
build_dir=$2
user=`whoami`
user=`whoami | tr '\n\r' '\n'`
date=`date`
cwd=`pwd`
if [ -d .git ]; then