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

misc: improve download-chrome.sh usability #15646

Merged
merged 2 commits into from
Dec 1, 2023
Merged

Conversation

connorjclark
Copy link
Collaborator

This script wasn't very simple to use locally, and it was more complex than it needed to be for CI. should be better now.

@connorjclark connorjclark requested a review from a team as a code owner November 29, 2023 22:04
@connorjclark connorjclark requested review from adamraine and removed request for a team November 29, 2023 22:04
@connorjclark connorjclark changed the title misc: improve download-chrome usabality misc: improve download-chrome.sh usabality Nov 29, 2023
@connorjclark connorjclark changed the title misc: improve download-chrome.sh usabality misc: improve download-chrome.sh usability Nov 29, 2023
Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

the cleanup to the yamls is real nice

curl "$url" -Lo chrome.zip && unzip -q chrome.zip
fi
mkdir -p .tmp-download && cd .tmp-download
curl "$url" -Lo chrome.zip && unzip -q chrome.zip && rm chrome.zip
Copy link
Member

Choose a reason for hiding this comment

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

i'd probably just put all these on their own lines
conceivably the -e is equivalent to stringing everything with && but i'm sure there's some idiosyncracies that I don't care about. but.. its probably close enough

also no big whoop. i'm fine with &&'s too.

Copy link
Collaborator Author

@connorjclark connorjclark Nov 30, 2023

Choose a reason for hiding this comment

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

idk why i bothered doing it this way when I normally don't, but fwiw the reason was structural/semantics, dealing with each like thing one line at a time.... little silly

@connorjclark connorjclark merged commit 63387dc into main Dec 1, 2023
23 of 29 checks passed
@connorjclark connorjclark deleted the better-download-chrome branch December 1, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants