Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 e1644bd05 -> 298bae209


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

Branch: refs/heads/branch-1.2
Commit: 298bae209c2da6c078430b4b269e721362fbec4a
Parents: e1644bd
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:48:23 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/298bae20/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