Skip to content

fix(shellcheck): remaining issues #8524

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 1 commit into from
Jul 1, 2025

Conversation

kojiromike
Copy link
Contributor

Short description of what this resolves:

This should resolve the remaining shellcheck findings after #8522 and #8523

Changes proposed in this pull request:

  • Avoid using find when globs will do the trick.
  • Ensure variables are defined or checked.
  • Ensure exit conditions are honored.

Does your code include anything generated by an AI Engine? No

Copy link
Member

@stephenwaite stephenwaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks @kojiromike

@bradymiller
Copy link
Member

is this ready to go out of draft mode?

@kojiromike
Copy link
Contributor Author

@bradymiller I wanted to resolve #8522 first before making this mergeable. Otherwise it won't actually resolve the remaining issues contrib/util/restore has the lion's share of shellcheck issues in the repo, and many of them would need to be resolved manually, so if we can't remove that script, it'll be a little bit before we can get a green shellcheck badge.

@kojiromike kojiromike force-pushed the shellcheck-last-of-us branch from 84beb1f to 4dde36c Compare July 1, 2025 13:50
@kojiromike kojiromike marked this pull request as ready for review July 1, 2025 14:01
@kojiromike
Copy link
Contributor Author

I gave in and resolved the shellcheck issues in contrib/util/restore even though I don't think we can know if it's being used.

@bradymiller
Copy link
Member

hi @kojiromike , thanks for rehabilitating that script. looks good. bringing in.

@bradymiller bradymiller merged commit c0ed5af into openemr:master Jul 1, 2025
24 of 26 checks passed
@kojiromike kojiromike deleted the shellcheck-last-of-us branch July 1, 2025 16:13
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