aboutsummaryrefslogtreecommitdiff
path: root/scripts/update_repo.sh
blob: 3ec5696c6245a4df2831ef2e7fdeb0e33e4aa8b4 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

test -f /etc/aurbuilder/config && source /etc/aurbuilder/config

OUTPUT=${OUTPUT:-/srv/pkg/}
REPONAME=${REPONAME:-aurbuilder}

repo-add -p -R "$OUTPUT/$REPONAME.db.tar.gz" "$OUTPUT/"*.pkg.* || exit 1
rm -f "$OUTPUT/"*.old