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

Fixing compatibility issues #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

AlexFabre
Copy link

Made the script more universal by removing bash specific syntax, and third parties dependences.

AlexFabre-Rtone and others added 5 commits October 4, 2023 15:11
In pure POSIX shell, a function name cannot contain hyphens
shellcheck 0.9.0 gives the following warning:

- SC2164 (warning): Use 'pushd ... || exit' or 'pushd ... || return' in case pushd fails.
`which` may not be available on every system
`command -v` is recomended to check for the presence of an executable on UNIX systems
- Before if `clang-format` was not found in `PATH` it would look for a version from `clang-format-4.x` down to `-3.x`.
- Now it perfoms this on the range `clang-format-18` down to `-15`.
- And it prints out the version it will use.
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.

None yet

2 participants