Skip to content

Commit

Permalink
Makefile: Only include currently valid scripts in shellcheck test
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Mar 23, 2022
1 parent 2a4d102 commit 8048a66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ checkstyle: test-shellcheck
.PHONY: test-shellcheck
test-shellcheck:
@which shellcheck >/dev/null 2>&1 || echo "Command 'shellcheck' not found, can not execute shell script checks"
shellcheck -x $$(file --mime-type * | sed -n 's/^\(.*\):.*text\/x-shellscript.*$$/\1/p')
# many files report errors so far hence only including a fixed list so far
#shellcheck -x $$(file --mime-type * | sed -n 's/^\(.*\):.*text\/x-shellscript.*$$/\1/p')
shellcheck -x retry

0 comments on commit 8048a66

Please sign in to comment.