Skip to content

Fix shellcheck --severity=warning issues #3789

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

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

johnbley
Copy link
Member

@johnbley johnbley commented Mar 19, 2024

Description

Run shellcheck --severity=warning on all build scripts. Fix a quoting issue, remove some dead code, and safely ensure that the build can't ever accidentally wipe the file system.

If desired, I could add a PR for enabling a shellcheck CI step similar to open-telemetry/opentelemetry-lambda#396

Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:

  • Scripts in scripts/ that were copied over to the Contrib repo have changed
    (Yes, and Contrib also has additional shellcheck errors/warnings in non-shared scripts)

  • Yes. - Link to PR: contrib shellcheck warnings

  • No.

@ocelotl
Copy link
Contributor

ocelotl commented Mar 20, 2024

Thanks @johnbley, that PR for CI checking is a great idea!

@ocelotl ocelotl added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 20, 2024
@ocelotl ocelotl merged commit 6dd85fc into open-telemetry:main Mar 20, 2024
@johnbley johnbley deleted the shellcheck_warnings branch March 21, 2024 01:19
@johnbley johnbley mentioned this pull request Mar 25, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants