You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2017/08/31 02:06:18 UTC
hbase git commit: HBASE-18461 Build broken If the username contains a
backslash
Repository: hbase
Updated Branches:
refs/heads/master 645e5a5e2 -> 53c951683
HBASE-18461 Build broken If the username contains a backslash
Signed-off-by: tedyu <yu...@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 <gu...@gmail.com>
Authored: Tue Aug 15 14:36:21 2017 +0800
Committer: tedyu <yu...@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