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

Allow curl to fail when file 404s #458

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

kwinkunks
Copy link
Member

@kwinkunks kwinkunks commented Jan 10, 2024

I guess we run with set -e and curl returns 1 when the file is 404. So this version always returns true from the curl, and we don't exit. Fixes #457.

Issue
Resolves #457

Approach
Main thing was adding the || true to the curl --head that tests the download.

Also allowing other versions of HTTP as I bet it's actually 1.1 -- so even the 'file exists' case might have failed before in fact.

Pre review checklist

  • Added appropriate labels

I guess we run with set -e and curl returns 1 when the file is 404.
So this version always returns true from the curl, and we don't exit.
Fixes equinor#457.
@kwinkunks kwinkunks requested review from berland and xjules January 10, 2024 08:45
Copy link

@sondreso sondreso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kwinkunks kwinkunks merged commit 1fcbede into equinor:main Jan 10, 2024
4 checks passed
@kwinkunks kwinkunks deleted the fix-chromedriver-download-again branch January 10, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Chrome driver downloads still failing
2 participants