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() {