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 2015/03/28 01:03:51 UTC

[03/37] incubator-kylin git commit: change "! -eq" syntax to "!=" since we compare string instead of a number

change "! -eq" syntax to "!=" since we compare string instead of a number

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

Branch: refs/heads/master
Commit: 05b0b1a833793856bacf53bec4ecb56b51a951f2
Parents: 0170668
Author: IT-DONG <wa...@sina.cn>
Authored: Wed Mar 18 18:54:35 2015 +0800
Committer: IT-DONG <wa...@sina.cn>
Committed: Wed Mar 18 18:54:35 2015 +0800

----------------------------------------------------------------------
 script/download-tomcat.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/05b0b1a8/script/download-tomcat.sh
----------------------------------------------------------------------
diff --git a/script/download-tomcat.sh b/script/download-tomcat.sh
index 1751541..77be1bf 100755
--- a/script/download-tomcat.sh
+++ b/script/download-tomcat.sh
@@ -10,7 +10,7 @@ then
     echo "not binary file found"
     wget http://mirror.sdunix.com/apache/tomcat/tomcat-7/v7.0.59/bin/apache-tomcat-7.0.59.tar.gz || echo "download tomcat failed"
 else
-    if [ ! `md5sum apache-tomcat-7.0.59.tar.gz | awk '{print $1}'` -eq "ec570258976edf9a833cd88fd9220909" ]
+    if [ `md5sum apache-tomcat-7.0.59.tar.gz | awk '{print $1}'` != "ec570258976edf9a833cd88fd9220909" ]
     then
         echo "md5 check failed"
         rm apache-tomcat-7.0.59.tar.gz
@@ -24,4 +24,4 @@ rm -rf tomcat/webapps/*
 
 mv tomcat/conf/server.xml tomcat/conf/server.xml.bak
 cp deploy/server.xml tomcat/conf/server.xml
-echo "server.xml overwritten..."
\ No newline at end of file
+echo "server.xml overwritten..."