forgot cd

This commit is contained in:
Jack L. Frost 2015-06-01 14:29:41 +03:00
parent b83a8799b3
commit 7ccfce7dcb

View File

@ -29,12 +29,9 @@ main() {
repo_name="$2" repo_name="$2"
build_pkg "$package" "$repo_name" build_pkg "$package" "$repo_name"
repo-add -n "${repo_name}.db.tar.gz" "$package"*.pkg.tar.xz
for i in "${repos[@]}"; do
cd "${cfg_repos_dir}/${i}" cd "${cfg_repos_dir}/${i}"
repo-add -n "${i}.db.tar.gz" *.pkg.tar.xz repo-add -n "${repo_name}.db.tar.gz" "$package"*.pkg.tar.xz
done
} }
main "$@" main "$@"