2019-10-22 21:22:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
|
|
|
|
tools_bin_dir="${BASH_SOURCE%/*}"
|
|
|
|
download_url=https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
|
2021-01-29 14:45:54 +00:00
|
|
|
version=v1.36.0
|
2019-10-22 21:22:39 +00:00
|
|
|
|
|
|
|
if ! curl -sfL "$download_url" | sh -s -- -b "$tools_bin_dir/bin" "$version"; then
|
|
|
|
printf "Something went wrong while installing golangci-lint\n" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|