diff --git a/builder-chroot.sh b/builder-chroot.sh index 4bebeaa..d0b6397 100755 --- a/builder-chroot.sh +++ b/builder-chroot.sh @@ -36,11 +36,9 @@ main() { for r in "$i"/*; do build_pkg "$repo_name" "${r##*/}" done - done - for i in "${cfg_repos[@]}"; do - cd "${cfg_repos_dir}/${i}" - repo-add -n "$i.db.tar.gz" *.pkg.tar.xz + cd "$i" + repo-add -n "${repo_name}.db.tar.gz" *.pkg.tar.xz done }