Compare commits

..

No commits in common. "c5215c814dda383c15425ca6568fb3f6345c2240" and "2948409f271a2df5168528b260ff405687c0bdc5" have entirely different histories.

1 changed files with 6 additions and 23 deletions

View File

@ -157,38 +157,21 @@ if [ "${#PACDEPS[@]}" != "0" ]; then
# first, gotta filter out the ones that are already installed # first, gotta filter out the ones that are already installed
INSTALLED=$(pacman -Qe) INSTALLED=$(pacman -Qe)
TO_INSTALL='' TO_INSTALL=''
removed=0
for pkg in $PACDEPS; do for pkg in $PACDEPS; do
if [[ -z $(echo $INSTALLED | grep $pkg) ]]; then if [[ ! -z $(echo $INSTALLED | grep $pkg) ]]; then
TO_INSTALL="$TO_INSTALL $pkg" TO_INSTALL="$TO_INSTALL $pkg"
else
removed=$(($removed + 1))
fi fi
done done
if ! [ "$removed" == "0" ]; then
inf "removed $removed installed pacman deps"
fi
if [ "$TO_INSTALL" != "" ]; then
inf "installing pacman packages:" inf "installing pacman packages:"
inf "$TO_INSTALL" inf "$TO_INSTALL"
# welp lets install those # welp lets install those
sudo pacman -S --needed --noconfirm $TO_INSTALL &> $BRICKS_DB/.pacman-log sudo pacman -S --needed --noconfirm $TO_INSTALL
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"
fi fi
else
inf "no pacman deps to install"
fi
i=1 i=1
# pacman deps installed, lets install the actual shit # pacman deps installed, lets install the actual shit