Repository: hbase
Updated Branches:
  refs/heads/master 645e5a5e2 -> 53c951683


HBASE-18461 Build broken If the username contains a backslash

Signed-off-by: tedyu <yuzhih...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/53c95168
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/53c95168
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/53c95168

Branch: refs/heads/master
Commit: 53c951683421b6712ab0b89435d767e1c5f67df0
Parents: 645e5a5
Author: Guangxu Cheng <guangxuch...@gmail.com>
Authored: Tue Aug 15 14:36:21 2017 +0800
Committer: tedyu <yuzhih...@gmail.com>
Committed: Wed Aug 30 19:06:11 2017 -0700

----------------------------------------------------------------------
 hbase-common/src/saveVersion.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/53c95168/hbase-common/src/saveVersion.sh
----------------------------------------------------------------------
diff --git a/hbase-common/src/saveVersion.sh b/hbase-common/src/saveVersion.sh
index b335039..051d648 100644
--- a/hbase-common/src/saveVersion.sh
+++ b/hbase-common/src/saveVersion.sh
@@ -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

Reply via email to