diff --git a/scripts/ci/check_scripts.sh b/scripts/ci/check_scripts.sh index 90bc79597..e33dd0b6b 100755 --- a/scripts/ci/check_scripts.sh +++ b/scripts/ci/check_scripts.sh @@ -3,5 +3,7 @@ set -x set -e +GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt + # stop the build if there are any formatting errors -GO111MODULE=on pre-commit run --all-files shfmt +shfmt -l -d -i 2 -ci -w .