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

[Backport 2.x] Move bash flag to set statement #3503

Closed
wants to merge 1 commit into from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 2fbf335 from #3494

Passing bash with flags to the first argument of /usr/bin/env requires
its own flag to interpret it correctly.  Rather than use `env -S` to
split the argument, have the script `set -e` to enable the same behavior
explicitly in preinst and postinst scripts.

Also set `-o pipefail` for consistency.

Closes: #3492

Signed-off-by: Cole White <cwhite@wikimedia.org>
(cherry picked from commit 2fbf335)
@opensearch-trigger-bot opensearch-trigger-bot bot requested review from a team and reta as code owners June 3, 2022 18:26
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success e93a4c4
Log 5761

Reports 5761

@owaiskazi19
Copy link
Member

owaiskazi19 commented Jun 5, 2022

@shdubsh can you amend the commit with -s flag and make sure DCO check passes for this PR? Thanks.

@shdubsh
Copy link
Contributor

shdubsh commented Jun 6, 2022

@owaiskazi19 I see the error, but I am not sure what I should do. I attempted to push an amended commit to this branch, but I do not have permission to opensearch-project/OpenSearch.

Is it appropriate to create a PR from my repo to the 2.x branch?

@owaiskazi19
Copy link
Member

Is it appropriate to create a PR from my repo to the 2.x branch?

Yeah that works too. Can you create a backport PR to 2.x branch? Once you raise the PR, we can close this one. Thanks!

@shdubsh
Copy link
Contributor

shdubsh commented Jun 6, 2022

@owaiskazi19 Created #3519

@owaiskazi19 owaiskazi19 closed this Jun 6, 2022
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