Non-fatal errors for packages

This commit is contained in:
Augusto Gunsch 2021-11-07 19:33:20 -03:00
parent 47bc14af53
commit 679a8b7a2b
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 10 additions and 2 deletions

View File

@ -198,12 +198,20 @@ install_aur() {
echo -ne "Installing ${LGREEN}$1${NC} from AUR ($2)..."
fi
se +e
quiet sudo -u nobody GOCACHE="$AUR_BUILD_DIR/go" makepkg --noconfirm
quiet pacman -U --noconfirm $1*.pkg.tar*
if [ $? -eq 0 ]; then
set +e
quiet pacman -U --noconfirm $1*.pkg.tar*
echo "done"
else
echo "failed"
fi
set +e
qpopd
rm -rf "$1"
qpopd
echo "done"
}
remove() {