Skip to content

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

Merged
owaiskazi19 merged 1 commit intoopensearch-project:2.xfrom
shdubsh:backport/backport-3494-to-2.x
Jun 6, 2022
Merged

[Backport 2.x] Move bash flag to set statement#3519
owaiskazi19 merged 1 commit intoopensearch-project:2.xfrom
shdubsh:backport/backport-3494-to-2.x

Conversation

@shdubsh
Copy link
Copy Markdown
Contributor

@shdubsh shdubsh commented Jun 6, 2022

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>
@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

❌   Gradle Check failure e755106
Log 5804

Reports 5804

@owaiskazi19
Copy link
Copy Markdown
Member

#1703 for the above

@owaiskazi19
Copy link
Copy Markdown
Member

start gradle check

@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

✅   Gradle Check success e755106
Log 5808

Reports 5808

@owaiskazi19 owaiskazi19 merged commit 7f57e32 into opensearch-project:2.x 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.

4 participants