Merge pull request #1773 from VojtechVitek/uname_ostype

Fix OS X build
pull/6/head
Joe Beda 2014-10-14 09:34:01 -07:00
commit 2de95cf4e2
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#! /bin/bash #!/bin/bash
# Copyright 2014 Google Inc. All rights reserved. # Copyright 2014 Google Inc. All rights reserved.
# #
@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # 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 errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
@ -145,7 +145,7 @@ function kube::build::verify_prereqs() {
# Utility functions # Utility functions
function kube::build::is_osx() { function kube::build::is_osx() {
[[ "$OSTYPE" == "darwin"* ]] [[ "$(uname)" == "Darwin" ]]
} }
function kube::build::clean_output() { function kube::build::clean_output() {