Merge pull request #2434 from dotfrag/fix/install-script-arch

fix: install.sh do not reinstall packages on arch
This commit is contained in:
Andras Bacsai 2024-06-11 11:39:50 +02:00 committed by GitHub
commit 9e4c8c52d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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