Double-check that all packages have been installed when using yay.
parent
41e0609009
commit
9944474ae6
|
@ -20,6 +20,11 @@ yay_install() {
|
|||
if [ ! -z "${packages}" ]; then
|
||||
yay -S --noconfirm --needed ${packages}
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue