mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
Merge pull request #1888 from jlucktay/fix/1887/hack-scripts-bash-cdpath
fix(hack): send cd output to null in case CDPATH is in effect
This commit is contained in:
@@ -17,7 +17,7 @@ set -o errexit -o nounset -o pipefail
|
||||
set -x;
|
||||
|
||||
# cd to the repo root
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
# pass through git details from prow / image builder
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
hack/make-rules/update/deps.sh
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root and setup go
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
source hack/build/setup-go.sh
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root and setup go
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
source hack/build/setup-go.sh
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root and setup go
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
source hack/build/setup-go.sh
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
# exit code, if a script fails we'll set this to 1
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root and setup go
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
source hack/build/setup-go.sh
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root and setup go
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
source hack/build/setup-go.sh
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# cd to the repo root
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
# upstream shellcheck latest stable image as of January 10th, 2019
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root and setup go
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
source hack/build/setup-go.sh
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# cd to the repo root
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)"
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." &> /dev/null && pwd -P)"
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
# ensure we have up to date kind
|
||||
|
||||
Reference in New Issue
Block a user