hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-18461 Build broken If the username contains a backslash
Date Thu, 31 Aug 2017 15:46:46 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 8178305d4 -> 433b42b41


HBASE-18461 Build broken If the username contains a backslash

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


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

Branch: refs/heads/branch-1
Commit: 433b42b41cca4cdbb87d638dff3820f1d3543efa
Parents: 8178305
Author: Guangxu Cheng <guangxucheng@gmail.com>
Authored: Tue Aug 15 14:36:21 2017 +0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Aug 31 08:46:39 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/433b42b4/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


Mime
View raw message