diff --git a/brick.sh b/brick.sh index 43c6d82..fa6ab8d 100755 --- a/brick.sh +++ b/brick.sh @@ -167,7 +167,13 @@ if [ "${#PACDEPS[@]}" != "0" ]; then inf "$TO_INSTALL" # welp lets install those - sudo pacman -S --needed --noconfirm $TO_INSTALL + sudo pacman -S --needed --noconfirm $TO_INSTALL &> $BRICKS_DB/.pacman-log + PACCODE="$?" + if ! [ "$PACCODE" == "0" ]; then + err "pacman exited with code $PACCODE" + err "pacman's output log is in $BRICKS_DB/.pacman-log" + exit + fi inf "installed all pacman deps" else inf "no pacman deps to install"