You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2016/11/29 08:20:34 UTC
kylin git commit: KYLIN-1978: fix compatible issue on Ubuntu
Repository: kylin
Updated Branches:
refs/heads/yang21 150bab61a -> 020686034
KYLIN-1978: fix compatible issue on Ubuntu
Signed-off-by: shaofengshi <sh...@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
Commit: 020686034f985a215476259caecfdc81a891e111
Parents: 150bab6
Author: Yiming Liu <li...@gmail.com>
Authored: Sun Sep 18 10:35:17 2016 +0800
Committer: shaofengshi <sh...@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