Double-check that all packages have been installed when using yay.

master
Icedream 2018-02-19 09:34:50 +01:00
parent 41e0609009
commit 9944474ae6
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ yay_install() {
if [ ! -z "${packages}" ]; then if [ ! -z "${packages}" ]; then
yay -S --noconfirm --needed ${packages} yay -S --noconfirm --needed ${packages}
fi fi
for package in "$@"; do
if ! pacman -Q "${package}" >/dev/null 2>&1; then
return 1 # at least one of the packages has not been correctly installed!
fi
done
return 0 return 0
} }