14 lines
291 B
Bash
14 lines
291 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
if [ ! $(command -v golangci-lint) ]
|
|
then
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.20.0
|
|
golangci-lint --version
|
|
fi
|
|
|
|
golangci-lint run
|