-
Notifications
You must be signed in to change notification settings - Fork 0
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
shfmt pre-commit #36
base: main
Are you sure you want to change the base?
shfmt pre-commit #36
Conversation
I set the indent to 4 spaces, although I think 2 spaces also look okay. |
Then we can try to go with 2 spaces, following https://google.github.io/styleguide/shellguide.html as well. Likely it will also trigger less changes? |
0548c9b
to
098102e
Compare
8ce916c
to
efade0c
Compare
@macpijan done |
Thanks, LGTM. Would it be a problem for your UEFI capsule changes @DaniilKl if we merge this? |
@macpijan, yep, definitely there will be some rebasing, could you please merge it after QEMU/Capsule Update? |
Sure, I guess we can run |
@PLangowski QEMU/capsule update has been merged, are you going to rebase this PR? |
efade0c
to
81ed5ef
Compare
rebased |
Signed-off-by: Pawel Langowski <[email protected]>
Signed-off-by: Pawel Langowski <[email protected]>
81ed5ef
to
97e458c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Not sure how much I like >"$file"
as I always added space unless it's 2>&1
type redirect but otherwise I think it's great addition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong button I wanted to approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PLangowski just noticed, shftm
in pre-commit doesn't fix files without .sh
suffix. shftm
used manually installed from dnf:
# dnf list --installed shfmt
Installed packages
shfmt.x86_64 3.7.0-5.fc41 fedora
fixes any file I point at it.
Can you check if this is fixable or maybe we should add suffix to all scripts?
If you add the suffix to all scripts - make sure to check everything that depends on the scripts and add suffixes there as well. |
@PLangowski Probably in Makefile. Install script without extension so we don't have to make changes in scripts |
No description provided.