Files
atomic-swap/scripts/install_lint.sh

12 lines
288 B
Bash
Executable File

#!/bin/bash
if [[ -z "${GOPATH}" ]]; then
export GOPATH=~/go
fi
if ! command -v golangci-lint &> /dev/null
then
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.0
fi
export PATH=$PATH:$(go env GOPATH)/bin