-
Notifications
You must be signed in to change notification settings - Fork 844
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 unnecessary use of -a option in read command in dco_check.sh #7917
base: main
Are you sure you want to change the base?
Conversation
his PR fixes a typo in the script where the read command incorrectly used the -a option. Signed-off-by: Bryer <[email protected]>
have you evaluated the possibility that when reading the line it could result in more than one element in the |
The difference between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am inclined to close this PR since I don't think this is a substantive change. Rather, this PR looks like several others that are an attempt to farm engagement for airdrop purposes. Please refrain from this type of activity.
If you would like to dispute this observation, tell me how many two letter words I used and what they are. Bonus points for replying in the form of a haiku
while IFS= read -r line; do | ||
my_array+=( "$line" ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my_array+=( "$line" )
already treats the line array as a string. this change has no discernible impact
agree with closing this as a spurious change |
Your code - your rules. I respect you and your decision. |
So close to a haiku though. |
Description:
This PR fixes a typo in the script where the
read
command incorrectly used the-a
option.Issue:
In the following line:
The
-a
option was used, which is meant for reading input into an array. However, this was unnecessary because each line is added to an array withmy_array+=( "$line" )
after reading it. The correct approach is to simply read the line without the-a
option.Fix:
Importance:
-a
option is not required here and could lead to confusion or unintended behavior.-a
option simplifies the command and makes the script more efficient by avoiding the unnecessary creation of an array for each line.Thanks for sending a pull request! Have you done the following?
doc-change-required
label to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew build
./gradlew acceptanceTest
./gradlew integrationTest
./gradlew ethereum:referenceTests:referenceTests