Skip to content

Commit

Permalink
Remove unnecessary quotes from get-kube scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gjkim42 committed May 24, 2021
1 parent 9fd6331 commit 1ddb11a
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 1ddb11a

Please sign in to comment.