Skip to content

Commit cc8de38

Browse files
committed
[update] : Check package build and install
1 parent 7881e11 commit cc8de38

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

system/aur.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ls "/usr/share/pacman/keyrings/"*".gpg" | sed "s|.gpg||g" | xargs | pacman-key -
6262

6363
# Build and install
6464
chmod +s /usr/bin/sudo
65-
for _pkg in "${@}"
65+
for _pkg in "pamac-aur" "${@}"; do
6666
yes | sudo -u aurbuild \
6767
yay -Sy \
6868
--mflags "-AcC" \
@@ -79,6 +79,11 @@ for _pkg in "${@}"
7979
--config "/etc/alteriso-pacman.conf" \
8080
--cachedir "/var/cache/pacman/pkg/" \
8181
"${_pkg}"
82+
83+
if ! pacman -Qq "${_pkg}" > /dev/null 2>&1; then
84+
echo -e "\n[aur.sh] Failed to install ${_pkg}\n"
85+
exit 1
86+
fi
8287
done
8388

8489
yay -Sccc --noconfirm --config "/etc/alteriso-pacman.conf"

0 commit comments

Comments
 (0)