From b1b9dcc73730994b81f4abbcae5997f56916f5a6 Mon Sep 17 00:00:00 2001 From: "Vojtech Vitek (V-Teq)" Date: Tue, 14 Oct 2014 16:51:50 +0200 Subject: [PATCH] Fix OS X build - Use $(uname) instead of $OSTYPE - Fix shebang - Fix typo Signed-off-by: Vojtech Vitek (V-Teq) --- build/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/common.sh b/build/common.sh index 0c1e5e328c5..42348d43ed6 100644 --- a/build/common.sh +++ b/build/common.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Copyright 2014 Google Inc. All rights reserved. # @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Common utilties, variables and checks for all build scripts. +# Common utilities, variables and checks for all build scripts. set -o errexit set -o nounset set -o pipefail @@ -145,7 +145,7 @@ function kube::build::verify_prereqs() { # Utility functions function kube::build::is_osx() { - [[ "$OSTYPE" == "darwin"* ]] + [[ "$(uname)" == "Darwin" ]] } function kube::build::clean_output() {