-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Revert "shellfmt: config/sources; no changes" #7554
Conversation
This reverts commit 2f63a9c. `[${1} / bootinfo_emmc.bin]` `[${1} / FSBL.bin]` - This is the path to the file. It cannot contain spaces.
There is another problem - found by shell-check.
|
In fact, we have three problems.
If I run (2) then everything will return to the 2f63a9cd987 commit state If I run the shellcheck (1) utility without any restrictions, I will fix this file to satisfy these two validation\changes scripts so that the algorithm remains functional. But the third problem will remain. The person who is testing sunxi64 probably doesn't want to interfere with other families. Let's think about it |
Understand.
At the end, this is all matters. Those tools are not perfect, but they help having code in some better state.
If there is no other way, both must have ways to tell linter to ignore the file. |
please fix the syntax of code in that file -- that way we can just run shellcheck and shellfmt at any time, as is the case with every other file in system
|
I will definitely do it.
Do I understand correctly? |
This reverts commit 2f63a9c.
[${1} / bootinfo_emmc.bin]
[${1} / FSBL.bin]
- This is the path to the file.
It cannot contain spaces.
Description
The shellfmt utility can be run manually and makes changes to all files defined here:
lib/tools/shellfmt.sh#L66
In some cases, the changes have a clear defect and can be detected by simply reading the changes.
In some cases, we need a thorough check of the system script run in the environment in which it is to be executed.
The syntax in the system script should work equally well in both old ubuntu\debian and new operating systems.
No automatic/machine changes to system scripts should be performed without subsequent manual health checks.
It also has to do with the changes that the shellcheck utility offers. lib/tools/shellcheck.sh
Discussion. The work is in progress.