From 9079dfd2166f30baa03385cfc37fa115ac153f41 Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 2 Feb 2015 03:50:10 +0300 Subject: [PATCH] asdlfjsd --- builder-chroot.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/builder-chroot.sh b/builder-chroot.sh index 20483dc..d006daa 100755 --- a/builder-chroot.sh +++ b/builder-chroot.sh @@ -32,13 +32,15 @@ main() { for i in "${cfg_build_dir}/repos"/*; do repo_name="${i##*/}" + repos+=( "$repo_name" ) for r in "$i"/*; do build_pkg "$repo_name" "${r##*/}" done + done - echo "Entering ${i}..." - cd "$i" + for i in "${repos[@]}"; do + cd "${cfg_repos_dir}/${repo}" repo-add -n "${repo_name}.db.tar.gz" *.pkg.tar.xz done }