diff --git a/cluster/get-kube-binaries.sh b/cluster/get-kube-binaries.sh index dc9d29a6537..589a335f015 100755 --- a/cluster/get-kube-binaries.sh +++ b/cluster/get-kube-binaries.sh @@ -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="" diff --git a/cluster/get-kube.sh b/cluster/get-kube.sh index f6a3419885e..d3075f687e6 100755 --- a/cluster/get-kube.sh +++ b/cluster/get-kube.sh @@ -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=""