diff --git a/hack/build.sh b/hack/build.sh index db03e45c8..0f7b0a020 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Knative Authors # @@ -14,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -source $(dirname $0)/../vendor/knative.dev/hack/library.sh - set -o pipefail source_dirs="cmd pkg test lib tools" @@ -347,6 +345,9 @@ if $(has_flag --debug); then set -x fi +# Shared funcs from hack repo +source $(basedir)/vendor/knative.dev/hack/library.sh + # Shared funcs with CI source $(basedir)/hack/build-flags.sh