#!/bin/bash BUILD_REPO="file:///home/build" if ! grep -q "$BUILD_REPO" /etc/pacman.conf; then sudo bash -c "echo -e '[build]\nSigLevel = Optional TrustAll\nServer = $BUILD_REPO' >> /etc/pacman.conf" if ! [ -f /home/build/build.db.tar.gz ]; then repo-add /home/build/build.db.tar.gz fi sudo pacman -Sy --noconfirm fi