Skip to content

add shellcheck linting#177

Open
mac-anysphere wants to merge 1 commit intoawalsh128:masterfrom
anysphere:mac/shellcheck
Open

add shellcheck linting#177
mac-anysphere wants to merge 1 commit intoawalsh128:masterfrom
anysphere:mac/shellcheck

Conversation

@mac-anysphere
Copy link
Copy Markdown

hello, since this is a fairly global change, wanted to commit this to your repo first vs. maintaining a local fork for shellcheck, hope you find it helpful

  • Updated variable expansions to use double quotes for better safety and to prevent word splitting.
  • Replaced ls with find in cache operations to handle non-alphanumeric filenames more robustly.
  • Enhanced array handling in scripts by using ${*:N} syntax for concatenation.
  • Improved readability and consistency in conditional checks by using [[ ... ]] instead of [ ... ].
  • Added comments for clarity on specific operations and shellcheck directives.

- Updated variable expansions to use double quotes for better safety and to prevent word splitting.
- Replaced `ls` with `find` in cache operations to handle non-alphanumeric filenames more robustly.
- Enhanced array handling in scripts by using `${*:N}` syntax for concatenation.
- Improved readability and consistency in conditional checks by using `[[ ... ]]` instead of `[ ... ]`.
- Added comments for clarity on specific operations and shellcheck directives.
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.

1 participant