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 645e5a5e2b
commit 53c9516834
1 changed files with 5 additions and 1 deletions

View File

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