mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #102027 from gjkim42/fix-get-kube-sh
Remove unnecessary quotes from get-kube scripts
This commit is contained in:
commit
b9ddee497a
@ -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=""
|
||||
|
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user