KYLIN-1679 get hive bee line properties fixed Signed-off-by: zkld123 <zkld...@sjtu.edu.cn>
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/b70ad407 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/b70ad407 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/b70ad407 Branch: refs/heads/stream_m1 Commit: b70ad40769c014d1e3e2041cae77754cad8e043a Parents: 930f397 Author: Lingyan Jiang <lynne...@hotmail.com> Authored: Thu Jun 16 15:27:57 2016 +0800 Committer: zkld123 <zkld...@sjtu.edu.cn> Committed: Thu Jun 16 16:09:21 2016 +0800 ---------------------------------------------------------------------- build/bin/get-properties.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/b70ad407/build/bin/get-properties.sh ---------------------------------------------------------------------- diff --git a/build/bin/get-properties.sh b/build/bin/get-properties.sh old mode 100644 new mode 100755 index 4c93b3b..3151ad6 --- a/build/bin/get-properties.sh +++ b/build/bin/get-properties.sh @@ -23,8 +23,9 @@ then exit -1 fi +IFS=$'\n' result= -for i in `cat ${KYLIN_HOME}/conf/kylin.properties | grep -w "$1" | grep -v '^#' |awk -F '=' '{print $2}' | cut -c 1-` +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