Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 414d78f70 -> c25d60599


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

Branch: refs/heads/branch-1.3
Commit: c25d60599341ac76ed0500dc3a70e4857f2fcf9a
Parents: 414d78f
Author: Guangxu Cheng <guangxuch...@gmail.com>
Authored: Tue Aug 15 14:36:21 2017 +0800
Committer: tedyu <yuzhih...@gmail.com>
Committed: Thu Aug 31 08:47:36 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/c25d6059/hbase-common/src/saveVersion.sh
----------------------------------------------------------------------
diff --git a/hbase-common/src/saveVersion.sh b/hbase-common/src/saveVersion.sh
index 890dc5a..a080b4f 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