diff --git a/hbase-common/src/saveVersion.sh b/hbase-common/src/saveVersion.sh index b335039fd0b..051d648c2e0 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