From 69c94b6594499f00d372ee8af736ec5b6b55b20f Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 9 Jun 2026 12:19:46 -0400 Subject: [PATCH] bin/setup only asks for pacman install password when needed --- bin/setup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/setup b/bin/setup index 9bf981b..e0f5bce 100755 --- a/bin/setup +++ b/bin/setup @@ -60,7 +60,10 @@ echo if command -v brew &>/dev/null; then step "Installing packages" brew install sqlite ffmpeg mise elif command -v pacman &>/dev/null; then - step "Installing packages" sudo pacman -S --noconfirm --needed sqlite ffmpeg mise + packages=(sqlite ffmpeg mise) + if ! pacman -Q "${packages[@]}" >/dev/null 2>&1; then + step "Installing packages" sudo pacman -S --noconfirm --needed "${packages[@]}" + fi elif command -v apt &>/dev/null; then step "Installing packages" sudo apt-get install --no-install-recommends -y libsqlite3-0 ffmpeg fi