summaryrefslogtreecommitdiff
path: root/hack/install_golangci.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hack/install_golangci.sh')
-rw-r--r--hack/install_golangci.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/hack/install_golangci.sh b/hack/install_golangci.sh
new file mode 100644
index 000000000..9d23bbd31
--- /dev/null
+++ b/hack/install_golangci.sh
@@ -0,0 +1,5 @@
+#!/bin/bash -e
+$GOBIN/golangci-lint --version | grep $VERSION
+if [ $? -ne 0 ]; then
+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOBIN v$VERSION
+fi