chore: Adapt `lint.sh` to Windows Git Bash by alexandear · Pull Request #3950 · google/go-github
./script/lint.sh now works in Git Bash on Windows. Tested on a virtual machine with Windows 11 installed. This should improve the developer experience for contributors who don't use Windows Subsystem for Linux.
Before we have an issue:
$ ./script/lint.sh
linting .
0 issues.
linting example
linting example
0 issues.
linting scrape
0 issues.
linting tools
0 issues.
linting tools/fmtpercentv
0 issues.
linting tools/sliceofpointers
0 issues.
linting tools/structfield
0 issues.
validating generated files
github\github.go:8: running "../script/metadata.sh": fork/exec ../script/metadata.sh: %1 is not a valid Win32 application.
failed validating generated files
Inspired by discussion comments in #3938.
