From bfbb21921f65b9724704b9a0db2b3b81c66736fa Mon Sep 17 00:00:00 2001 From: Lingyan Jiang Date: Thu, 16 Jun 2016 15:27:57 +0800 Subject: [PATCH] KYLIN-1679 get hive bee line properties fixed --- build/bin/get-properties.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 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 -- 2.3.2 (Apple Git-55)