mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix OS X build
- Use $(uname) instead of $OSTYPE - Fix shebang - Fix typo Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
This commit is contained in:
parent
ebba1aed7d
commit
b1b9dcc737
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user