(feat) isolate build scripts from brick script

This commit is contained in:
b1ek 2024-02-14 10:27:31 +10:00
parent af22f05c44
commit 58cf4dc5fa
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 6 additions and 3 deletions

View File

@ -177,10 +177,13 @@ i=1
# pacman deps installed, lets install the actual shit # pacman deps installed, lets install the actual shit
for pkg in "${PKGS[@]}"; do for pkg in "${PKGS[@]}"; do
inf "installing $pkg [$i/${#PKGS[@]}]" inf "installing $pkg [$i/${#PKGS[@]}]"
source $(getbrick $pkg) SCRIPT="
install > $BRICKS_DB/.$pkg-install-log export BRICKS_DIR=$BRICKS_DIR
export BRICKS_DB=$BRICKS_DB
source $(getbrick $pkg)\n
install"
echo -e "$SCRIPT" | bash > $BRICKS_DB/.$pkg-install-log
i=$(($i + 1)) i=$(($i + 1))
done done
inf "done" inf "done"