mirror of
https://github.com/rgl/nexus-vagrant.git
synced 2026-09-30 00:31:11 +02:00
14 lines
424 B
Bash
14 lines
424 B
Bash
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
# see https://github.com/anchore/syft/releases
|
|
# renovate: datasource=github-releases depName=anchore/syft
|
|
version='1.51.1'
|
|
|
|
# download and install.
|
|
syft_url="https://github.com/anchore/syft/releases/download/v${version}/syft_${version}_linux_amd64.tar.gz"
|
|
t="$(mktemp -q -d --suffix=.syft)"
|
|
wget -qO- "$syft_url" | tar xzf - -C "$t" syft
|
|
install -m 755 "$t/syft" /usr/local/bin/
|
|
rm -rf "$t"
|