hack: remove redundant 'set -e' alongside 'set -o errexit'#8994
hack: remove redundant 'set -e' alongside 'set -o errexit'#8994Ankitsinghsisodya wants to merge 1 commit intoknative:mainfrom
Conversation
'set -e' is an exact alias for 'set -o errexit'. Having both creates misleading code that implies they do different things. Keep only the long-form 'set -o errexit' for clarity.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Ankitsinghsisodya The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @Ankitsinghsisodya. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Pull request overview
This PR removes redundant shell error-handling flags in Knative Eventing’s hack/ helper scripts, keeping the long-form set -o errexit while dropping the equivalent short-form set -e.
Changes:
- Remove
set -efromhack/install.sh(leavingset -o errexit). - Remove
set -efromhack/create-kind-cluster.sh(leavingset -o errexit).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
hack/install.sh |
Removes redundant set -e while retaining set -o errexit for fail-fast behavior. |
hack/create-kind-cluster.sh |
Removes redundant set -e while retaining set -o errexit for fail-fast behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #8993
Summary
set -efromhack/create-kind-cluster.shandhack/install.shset -eis an exact alias forset -o errexit. The long-form option is already present in both scripts; the short form is redundant.