File tree Expand file tree Collapse file tree 5 files changed +23
-24
lines changed
Expand file tree Collapse file tree 5 files changed +23
-24
lines changed Original file line number Diff line number Diff line change 1818 - uses : actions/checkout@v4
1919 - uses : luizm/action-sh-checker@v0.9.0
2020 with :
21- sh_checker_exclude : ' scripts/verify-* scripts/update-* scripts/release.sh'
2221 sh_checker_checkbashisms_enable : true
Original file line number Diff line number Diff line change 33
44# == would end up with: scripts/release.sh: 5: [: v3.8.1: unexpected operator
55if [ " $1 " = " " ]; then
6- echo usage: " $0 VERSION"
7- exit 1
6+ echo usage: " $0 VERSION"
7+ exit 1
88fi
99
1010git tag $1
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ set -o nounset
66set -o pipefail
77
88find_files () {
9- find . -not \( \
10- \( \
11- -wholename ' */vendor/*' \
12- \) -prune \
13- \) -name ' *.go'
9+ find . -not \( \
10+ \( \
11+ -wholename ' */vendor/*' \
12+ \) -prune \
13+ \) -name ' *.go'
1414}
1515
1616find_files | xargs gofmt -w -s
Original file line number Diff line number Diff line change @@ -6,17 +6,17 @@ set -o nounset
66set -o pipefail
77
88find_files () {
9- find . -not \( \
10- \( \
11- -wholename ' */vendor/*' \
12- \) -prune \
13- \) -name ' *.go'
9+ find . -not \( \
10+ \( \
11+ -wholename ' */vendor/*' \
12+ \) -prune \
13+ \) -name ' *.go'
1414}
1515
1616bad_files=$( find_files | xargs gofmt -d -s 2>&1 )
1717if [[ -n " ${bad_files} " ]]; then
18- echo " ${bad_files} " >&2
19- echo >&2
20- echo " Run ./hack/update-gofmt.sh" >&2
21- exit 1
18+ echo " ${bad_files} " >&2
19+ echo >&2
20+ echo " Run ./hack/update-gofmt.sh" >&2
21+ exit 1
2222fi
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ set -o nounset
55set -o pipefail
66
77find_packages () {
8- find . -not \( \
9- \( \
10- -wholename ' */vendor/*' \
11- \) -prune \
12- \) -name ' *.go' -exec dirname ' {}' ' ;' | sort -u
8+ find . -not \( \
9+ \( \
10+ -wholename ' */vendor/*' \
11+ \) -prune \
12+ \) -name ' *.go' -exec dirname ' {}' ' ;' | sort -u
1313}
1414
1515errors=" $( find_packages | xargs -I@ bash -c " staticcheck @" ) "
1616if [[ -n " ${errors} " ]]; then
17- echo " ${errors} "
18- exit 1
17+ echo " ${errors} "
18+ exit 1
1919fi
You can’t perform that action at this time.
0 commit comments