(feat) redirect pacman output and stop the build if pacman failed
This commit is contained in:
parent
2948409f27
commit
b7b536755c
8
brick.sh
8
brick.sh
|
@ -167,7 +167,13 @@ if [ "${#PACDEPS[@]}" != "0" ]; then
|
||||||
inf "$TO_INSTALL"
|
inf "$TO_INSTALL"
|
||||||
|
|
||||||
# welp lets install those
|
# 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"
|
inf "installed all pacman deps"
|
||||||
else
|
else
|
||||||
inf "no pacman deps to install"
|
inf "no pacman deps to install"
|
||||||
|
|
Loading…
Reference in New Issue