#!/bin/bash souce /etc/de-p1st-repo/arch-repo.cfg || exit # # add new packages to database # function add_to_db(){ mapfile -t PKGS < <(cat new-pkg.txt) for PKG in "${PKGS[@]}"; do repo-add -n "${REMOTE_DB_NAME}.db.tar.gz" "${PKG}" || exit done } # # generate index.html # function generate_index(){ echo '