Repository: hbase
Updated Branches:
  refs/heads/branch-2 2cd58d83d -> a0f980b57


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/a0f980b5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a0f980b5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a0f980b5

Branch: refs/heads/branch-2
Commit: a0f980b573b5af134002f0cb9163384d694b4388
Parents: 2cd58d8
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:53 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/a0f980b5/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