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