You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2016/06/07 00:24:42 UTC

kylin git commit: minor, kylin.sh set KYLIN_HOME to an absolute path

Repository: kylin
Updated Branches:
  refs/heads/master c5db38786 -> e924fc439


minor, kylin.sh set KYLIN_HOME to an absolute path

Signed-off-by: Yang Li <li...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/e924fc43
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e924fc43
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e924fc43

Branch: refs/heads/master
Commit: e924fc439595b1b6629ab4884296596b429d8e97
Parents: c5db387
Author: Vic <jw...@ebay.com>
Authored: Fri May 27 15:07:53 2016 +0800
Committer: Yang Li <li...@apache.org>
Committed: Tue Jun 7 08:23:56 2016 +0800

----------------------------------------------------------------------
 build/bin/kylin.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/e924fc43/build/bin/kylin.sh
----------------------------------------------------------------------
diff --git a/build/bin/kylin.sh b/build/bin/kylin.sh
index ce64a40..d8aeef5 100644
--- a/build/bin/kylin.sh
+++ b/build/bin/kylin.sh
@@ -17,11 +17,10 @@
 # limitations under the License.
 #
 
-dir=$(dirname ${0})
-
 # We should set KYLIN_HOME here for multiple tomcat instances that are on the same node.
 # In addition, we should set a KYLIN_HOME for the global use as normal.
-export KYLIN_HOME=${dir}/../
+KYLIN_HOME=`dirname $0`/..
+export KYLIN_HOME=`cd "$KYLIN_HOME"; pwd`
 
 source ${dir}/check-env.sh
 mkdir -p ${KYLIN_HOME}/logs