my-yadm/.local/dotfiles/functions/update-solrepo.zsh

9 lines
237 B
Bash

function update-solrepo() {
REPO_DIR=${REPO_DIR-/mnt/storage/repo/solus}
pushd "$REPO_DIR" 2>&1 >/dev/null
eopkg index
rsync -avhHi --delete-after "${REPO_DIR}/" root@bastion:/srv/repo/solus/
popd 2>&1 >/dev/null
}