Dropped dotbot-ifplatform and dotbot-golang

This commit is contained in:
2023-04-01 22:26:03 +03:00
parent 11969bf791
commit dd3640586e
6 changed files with 32 additions and 26 deletions

30
scripts/install-go-packages.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# Install Go packages
#
# shellcheck source=shared.sh
source "$HOME/.dotfiles/scripts/shared.sh"
if ! command -v go &> /dev/null; then
msg "go hasn't been installed yet."
else
packages=(
# sysadmin/scripting utilities, distributed as a single binary
github.com/skx/sysbox@latest
github.com/dotzero/git-profile@latest
github.com/google/yamlfmt/cmd/yamlfmt@latest
)
for pkg in "${packages[@]}"; do
# Trim spaces
pkg=${pkg// /}
# Skip comments
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
msg_run "Installing go package:" "$pkg"
go install "$pkg"
echo ""
done
msg_ok "Done"
fi