Skip to content

Commit

Permalink
Fix OS X build
Browse files Browse the repository at this point in the history
- Use $(uname) instead of $OSTYPE
- Fix shebang
- Fix typo

Signed-off-by: Vojtech Vitek (V-Teq) <[email protected]>
  • Loading branch information
VojtechVitek committed Oct 14, 2014
1 parent ebba1ae commit b1b9dcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash

# Copyright 2014 Google Inc. All rights reserved.
#
Expand All @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit b1b9dcc

Please sign in to comment.