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

fix: fix potential error when running without any argument in check-snapshots.sh #11812

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

klein818
Copy link
Contributor

@klein818 klein818 commented Sep 9, 2024

Description

The fix improves robustness of the script.
The orginal script assumes that $1 will always be set. If the script is run without any arguments, this will produce an error due to set -u (which treats unset variables as an error).

To fix this, before comparing it, whether $1 is set is checked

Tests

Local test has been performed, no issue found

@klein818 klein818 requested a review from a team as a code owner September 9, 2024 20:22
@klein818 klein818 requested a review from clabby September 9, 2024 20:22
@tynes
Copy link
Contributor

tynes commented Sep 16, 2024

cc @smartcontracts

@smartcontracts
Copy link
Contributor

Hi, sorry for the delay here! Could you rebase this PR? I'll get it merged once that's done

@klein818
Copy link
Contributor Author

Hi, sorry for the delay here! Could you rebase this PR? I'll get it merged once that's done

Hi @smartcontracts : thanks for your comment, the rebase is done now.

@smartcontracts smartcontracts added this pull request to the merge queue Oct 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 23, 2024
@smartcontracts smartcontracts added this pull request to the merge queue Oct 23, 2024
Merged via the queue into ethereum-optimism:develop with commit 3159e0e Oct 23, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants