From 679a8b7a2b8c58c23cf66d35d173b7260e8c91d7 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Sun, 7 Nov 2021 19:33:20 -0300 Subject: [PATCH] Non-fatal errors for packages --- post-install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/post-install.sh b/post-install.sh index 798b554..3cc887c 100755 --- a/post-install.sh +++ b/post-install.sh @@ -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() {