perf: install env checks

This commit is contained in:
2025-12-23 20:53:55 +02:00
parent a286817ce3
commit 891ae505f8
30 changed files with 492 additions and 490 deletions

View File

@@ -5,21 +5,20 @@
# (distros with pacman only) Install core pacman packages.
#
if command -v pacman &> /dev/null; then
pacman_packages=(
ca-certificates
curl
gnupg
wget
base-devel
)
# pacman only
[[ "$DOTS_PKG" != "pacman" ]] && { log_warn "Skipping: Not using pacman"; return 0; }
sudo pacman -Sy --noconfirm
sudo pacman -S --noconfirm --needed "${pacman_packages[@]}"
pacman_packages=(
ca-certificates
curl
gnupg
wget
base-devel
)
unset pacman_packages
sudo pacman -Sy --noconfirm
sudo pacman -S --noconfirm --needed "${pacman_packages[@]}"
pacman --version
else
log_warn "Skipping: pacman not found"
fi
unset pacman_packages
pacman --version