build: Run scripts directly from makefile, rather than via sh

All four of these scripts have #! lines calling for them to run in bash,
and they are all marked as executable, so there's no harm in running them
directly and it makes it clearer that we're running them in the shell
specified on the #! line, rather than with whatever "sh' happens to be
on the current system.

(Note that this _was_ still correctly using the #! lines before, because
it's `sh -c` rather than just `sh`, but nonetheless that old way seemed
needlessly confusing.)
This commit is contained in:
Martin Atkins 2022-08-25 15:49:39 -07:00
parent edb1152ae0
commit 4c7f20853f

View File

@ -33,16 +33,16 @@ protobuf:
go run ./tools/protobuf-compile .
fmtcheck:
sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
"$(CURDIR)/scripts/gofmtcheck.sh"
importscheck:
sh -c "'$(CURDIR)/scripts/goimportscheck.sh'"
"$(CURDIR)/scripts/goimportscheck.sh"
staticcheck:
sh -c "'$(CURDIR)/scripts/staticcheck.sh'"
"$(CURDIR)/scripts/staticcheck.sh"
exhaustive:
sh -c "'$(CURDIR)/scripts/exhaustive.sh'"
"$(CURDIR)/scripts/exhaustive.sh"
# Default: run this if working on the website locally to run in watch mode.
website: