Skip to content

Commit

Permalink
Merge pull request kubernetes#102043 from gjkim42/automated-cherry-pi…
Browse files Browse the repository at this point in the history
…ck-of-#102027-upstream-release-1.20

Automated cherry pick of kubernetes#102027: Remove unnecessary quotes from get-kube scripts
  • Loading branch information
k8s-ci-robot authored May 26, 2021
2 parents 6fd22ce + 1ddb11a commit b6b4b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cluster/get-kube-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function download_tarball() {
mkdir -p "${download_path}"

if [[ $(which gsutil) ]] && [[ "$url" =~ ^https://storage.googleapis.com/.* ]]; then
gsutil cp "${url//'https://storage.googleapis.com/'/'gs://'}" "${download_path}/${file}"
gsutil cp "${url//'https://storage.googleapis.com/'/gs://}" "${download_path}/${file}"
elif [[ $(which curl) ]]; then
# if the url belongs to GCS API we should use oauth2_token in the headers
curl_headers=""
Expand Down
2 changes: 1 addition & 1 deletion cluster/get-kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fi

if "${need_download}"; then
if [[ $(which gsutil) ]] && [[ "$kubernetes_tar_url" =~ ^https://storage.googleapis.com/.* ]]; then
gsutil cp "${kubernetes_tar_url//'https://storage.googleapis.com/'/'gs://'}" "${file}"
gsutil cp "${kubernetes_tar_url//'https://storage.googleapis.com/'/gs://}" "${file}"
elif [[ $(which curl) ]]; then
# if the url belongs to GCS API we should use oauth2_token in the headers
curl_headers=""
Expand Down

0 comments on commit b6b4b97

Please sign in to comment.