(fix) fix broken pacman installed deps detection mechanism
This commit is contained in:
parent
b7b536755c
commit
c5215c814d
13
brick.sh
13
brick.sh
|
@ -157,12 +157,20 @@ if [ "${#PACDEPS[@]}" != "0" ]; then
|
|||
# first, gotta filter out the ones that are already installed
|
||||
INSTALLED=$(pacman -Qe)
|
||||
TO_INSTALL=''
|
||||
removed=0
|
||||
for pkg in $PACDEPS; do
|
||||
if [[ ! -z $(echo $INSTALLED | grep $pkg) ]]; then
|
||||
if [[ -z $(echo $INSTALLED | grep $pkg) ]]; then
|
||||
TO_INSTALL="$TO_INSTALL $pkg"
|
||||
else
|
||||
removed=$(($removed + 1))
|
||||
fi
|
||||
done
|
||||
|
||||
if ! [ "$removed" == "0" ]; then
|
||||
inf "removed $removed installed pacman deps"
|
||||
fi
|
||||
|
||||
if [ "$TO_INSTALL" != "" ]; then
|
||||
inf "installing pacman packages:"
|
||||
inf "$TO_INSTALL"
|
||||
|
||||
|
@ -178,6 +186,9 @@ if [ "${#PACDEPS[@]}" != "0" ]; then
|
|||
else
|
||||
inf "no pacman deps to install"
|
||||
fi
|
||||
else
|
||||
inf "no pacman deps to install"
|
||||
fi
|
||||
|
||||
i=1
|
||||
# pacman deps installed, lets install the actual shit
|
||||
|
|
Loading…
Reference in New Issue