HBASE-18461 Build broken If the username contains a backslash

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Guangxu Cheng 2017-08-15 14:36:21 +08:00 committed by tedyu
parent 2cd58d83d3
commit a0f980b573
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,11 @@ outputDirectory=$2
pushd .
cd ..
user=`whoami | sed -n -e 's/\\\/\\\\\\\\/p'`
if [ "$user" == "" ]
then
user=`whoami`
fi
date=`date`
cwd=`pwd`
if [ -d .svn ]; then