mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-09 14:18:03 -05:00
12 lines
288 B
Bash
Executable File
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 |