Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WX-1443 Adopt gcloud storage for localization only #7359

Merged
merged 18 commits into from
Feb 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix content type
aednichols committed Jan 12, 2024
commit 8dd70afe20afa441784cbc6170f31fe1ce0717b3
Original file line number Diff line number Diff line change
@@ -34,9 +34,7 @@ private::delocalize_file() {
cloud_parent=$(dirname "$cloud")"/"

if [[ -f "$container" && -n "$content" ]]; then
# TODO weird error caused by headers
# https://broadinstitute.slack.com/archives/C3GMDRWCS/p1705084799477529
rm -f "$HOME/.config/gcloud/gce" && gcloud storage ${rpflag} --additional-headers=Content-Type="$content" cp "$container" "$cloud_parent" > "$gsutil_log" 2>&1
rm -f "$HOME/.config/gcloud/gce" && gcloud storage ${rpflag} --content-type="$content" cp "$container" "$cloud_parent" > "$gsutil_log" 2>&1
elif [[ -f "$container" ]]; then
rm -f "$HOME/.config/gcloud/gce" && gcloud storage ${rpflag} cp "$container" "$cloud_parent" > "$gsutil_log" 2>&1
elif [[ -e "$container" ]]; then