Repository: kylin Updated Branches: refs/heads/yang21-hbase1.x 1db21cd5f -> 02f37bd82 (forced update)
KYLIN-1978: fix compatible issue on Ubuntu Signed-off-by: shaofengshi <shaofeng...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/02068603 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/02068603 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/02068603 Branch: refs/heads/yang21-hbase1.x Commit: 020686034f985a215476259caecfdc81a891e111 Parents: 150bab6 Author: Yiming Liu <liuyiming....@gmail.com> Authored: Sun Sep 18 10:35:17 2016 +0800 Committer: shaofengshi <shaofeng...@apache.org> Committed: Tue Nov 29 16:19:11 2016 +0800 ---------------------------------------------------------------------- build/bin/get-properties.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/02068603/build/bin/get-properties.sh ---------------------------------------------------------------------- diff --git a/build/bin/get-properties.sh b/build/bin/get-properties.sh index 45bc49e..7ce4bd2 100755 --- a/build/bin/get-properties.sh +++ b/build/bin/get-properties.sh @@ -26,10 +26,5 @@ then fi IFS=$'\n' -result= -for i in `cat ${KYLIN_HOME}/conf/kylin.properties | grep -w "^$1" | grep -v '^#' | awk -F= '{ n = index($0,"="); print substr($0,n+1)}' | cut -c 1-` -do - : - result=$i -done -echo "$result" \ No newline at end of file +result=`cat ${KYLIN_HOME}/conf/kylin.properties | grep -w "^$1" | grep -v '^#' | awk -F= '{ n = index($0,"="); print substr($0,n+1)}' | cut -c 1- |tail -1` +echo $result