mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
11 lines
377 B
Bash
11 lines
377 B
Bash
#!/bin/sh
|
|
# Install revive from a tagged module version (requires Go on PATH).
|
|
# Usage: setup-revive.sh [module_version]
|
|
set -eu
|
|
|
|
. "$(dirname "$0")/priv.sh"
|
|
|
|
export PATH="/usr/local/go/bin:$PATH"
|
|
VER="${1:-v1.15.0}"
|
|
run_priv env PATH="$PATH" GOBIN=/usr/local/bin GOFLAGS= GOPROXY=https://proxy.golang.org,direct go install "github.com/mgechev/revive@${VER}"
|
|
command -v revive
|