fix: install.sh do not reinstall packages on arch

This commit is contained in:
dotfrag 2024-06-10 22:17:31 +03:00
parent e08dc777df
commit be08a2650c

View File

@ -75,10 +75,7 @@ echo "Installing required packages..."
case "$OS_TYPE" in
arch)
pacman -Sy >/dev/null || true
if ! pacman -Q curl wget git jq >/dev/null; then
pacman -S --noconfirm curl wget git jq >/dev/null || true
fi
pacman -Sy --noconfirm --needed curl wget git jq >/dev/null || true
;;
ubuntu | debian | raspbian)
apt update -y >/dev/null