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/a25131ec Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/a25131ec Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/a25131ec Branch: refs/heads/1.5.x-HBase1.x Commit: a25131eca336c0698a75c85c64dc000c8b91cc74 Parents: e10f2b9 Author: Yiming Liu <liuyiming....@gmail.com> Authored: Sun Sep 18 10:35:17 2016 +0800 Committer: shaofengshi <shaofeng...@apache.org> Committed: Sun Sep 25 15:38:21 2016 +0800 ---------------------------------------------------------------------- build/bin/get-properties.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/a25131ec/build/bin/get-properties.sh ---------------------------------------------------------------------- diff --git a/build/bin/get-properties.sh b/build/bin/get-properties.sh index a53de6b..516e8c9 100755 --- a/build/bin/get-properties.sh +++ b/build/bin/get-properties.sh @@ -23,11 +23,5 @@ then exit -1 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