Skip to content

Commit 0081048

Browse files
committed
[update] : Skip if packages has already been installed
1 parent 333401e commit 0081048

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

system/aur.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ fi
106106
# Build and install
107107
chmod +s /usr/bin/sudo
108108
for _pkg in "${@}"; do
109+
pacman -Qq "${_pkg}" > /dev/null 2>&1 && continue
110+
109111
yes | sudo -u "${aur_username}" \
110112
yay -Sy \
111113
--mflags "-AcC" \

0 commit comments

Comments
 (0)