-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ran `shfmt -w btrfs-auto-snapshot`. I am a fan of having a formatter for the source files. Let me know what you think, I obviously respect if you don't care as much (and we leave it as-is). Also, as I am not a huge fan of third-party github actions, I opted to install `shellcheck` to the ubuntu image and run it from there. Diff best previewed in `git diff -w --word-diff`.
- Loading branch information
Showing
3 changed files
with
89 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FILES = btrfs-auto-snapshot | ||
|
||
.PHONY: lint | ||
lint: shfmt shellcheck | ||
|
||
.PHONY: shfmt | ||
shfmt: | ||
shfmt --keep-padding --func-next-line -i 4 -w $(FILES) | ||
|
||
.PHONY: shellcheck | ||
shellcheck: | ||
shellcheck $(FILES) |
Oops, something went wrong.