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

Addressed lintian/shellcheck warnings #1471

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

Conversation

tuto193
Copy link

@tuto193 tuto193 commented Mar 29, 2021

What:

  • Adjusted all .sh/.bash scripts so they are now POSIX compliant (used shellcheck to find/fix issues).

Why:

  • Platforms/GOS -Dev team was looking to get rid of hopefully all warnings/notifications (instead of just ignoring them like done until now), to ensure that the code remains stabke, compliant and compatible, and keep a clean build system, to more easily tackle future errors and problems that may arise.

How did you test it:
All styling/code changes were tested locally and individually to ensure that functionality remains equal, while making mostly just superficial changes.

Checklist:

@tuto193 tuto193 requested a review from a team as a code owner March 29, 2021 13:33
src/manage_migrators_219_to_220_names.h Outdated Show resolved Hide resolved
tools/gvm-migrate-config Outdated Show resolved Hide resolved
Carlos A. Parra F added 5 commits March 29, 2021 16:21
with equivalent "command -v".
* Replaced all remaining $.. with "$..".

* Replaced raw $? checks with better  ||, && and "if" checks.

* Packed chains of 'echo ".." >> $x; echo ".." >> $x' with better
  '{ echo ".."; echo ".." } >> $x'.

* exported locally unused variables (that are probably needed by other
  scripts).
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.

2 participants