personal-dns/gotools.sh

21 lines
367 B
Bash
Raw Normal View History

#!/bin/bash
set -euxo pipefail
packages=(
github.com/Luzifer/bind-log-metrics
github.com/Luzifer/named-blacklist
github.com/Luzifer/rootzone
)
for pkg in "${packages[@]}"; do
targetdir="/go/src/${pkg}"
# Get sources
git clone "https://${pkg}.git" "${targetdir}"
# Go to directory and install util
pushd "${targetdir}"
go install -mod=readonly
popd
done