mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -06:00
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:
parent
edb1152ae0
commit
4c7f20853f
8
Makefile
8
Makefile
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user