This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new aa61c1a  KYLIN-3864 Provide a function to judge whether the os type is 
Mac os x or not
aa61c1a is described below

commit aa61c1a062d8cb336c67df7803a09b52f139b643
Author: yanghua <[email protected]>
AuthorDate: Mon Mar 11 23:19:18 2019 +0800

    KYLIN-3864 Provide a function to judge whether the os type is Mac os x or 
not
---
 build/bin/util.sh | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/build/bin/util.sh b/build/bin/util.sh
new file mode 100644
index 0000000..25cfbc2
--- /dev/null
+++ b/build/bin/util.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+isMacosX() {
+    if [[ "$OSTYPE" == "darwin"* ]]; then
+        return 0
+    else
+        return 1
+    fi
+}
\ No newline at end of file

Reply via email to