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

10 lines
237 B
Bash
Raw Normal View History

2019-06-06 12:21:06 -04:00
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
}