Skip to content

Commit

Permalink
sw: makefile: Add shfmt target
Browse files Browse the repository at this point in the history
Signed-off-by: Saalim Quadri <[email protected]>
  • Loading branch information
danascape committed Jul 31, 2023
1 parent 036eb50 commit 081d124
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
check-scripts:
while read -r script; do shellcheck --exclude=SC1090,SC1091 $$script; done < files

execute-shfmt:
while read -r script; do shfmt -ln=bash -fn -ci -sr -w $$script; done < files

.PHONY: check-scripts

0 comments on commit 081d124

Please sign in to comment.