Run release checks with the stock macOS Bash
This commit is contained in:
@@ -35,7 +35,10 @@ git ls-files --cached --others --exclude-standard -z |
|
||||
diff -u go.mod "$temporary_dir/go.mod"
|
||||
diff -u go.sum "$temporary_dir/go.sum"
|
||||
|
||||
mapfile -d '' go_files < <(git ls-files --cached --others --exclude-standard -z -- '*.go')
|
||||
go_files=()
|
||||
while IFS= read -r -d '' go_file; do
|
||||
go_files+=("$go_file")
|
||||
done < <(git ls-files --cached --others --exclude-standard -z -- '*.go')
|
||||
if ((${#go_files[@]})); then
|
||||
unformatted=$(gofmt -l -- "${go_files[@]}")
|
||||
if [[ -n "$unformatted" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user