meta: fix installing as root and packages from AUR

This commit is contained in:
lelgenio 2021-10-28 21:55:51 -03:00
parent c400dafbd1
commit 14cf8609db
1 changed files with 7 additions and 2 deletions

View File

@ -2,8 +2,11 @@
set -e
test `id -u` -ne 0 ||
exit 0
command -v makepkg &>/dev/null ||
exit 1
exit 0
install_pikaur() {
PIKDIR="$HOME/.cache/pikaur/build/pikaur"
@ -34,7 +37,9 @@ pikaur \
--noconfirm \
--keepbuilddep ||
for depend in ${depends[@]}; do
sudo pacman -S --needed --noconfirm $depend || true
pikaur -S --needed --noconfirm $depend ||
sudo pacman -S --needed --noconfirm $depend ||
true
done
init_deps=""