diff --git a/build.sh b/build.sh index f59cde5..57ebeb5 100755 --- a/build.sh +++ b/build.sh @@ -9,11 +9,12 @@ chown -R build:build * for d in */ ; do echo "$d" cd "$d" - sudo -u build sh -c 'makepkg -s --skippgpcheck' + sudo -u build sh -c 'makepkg -s --skippgpcheck --noconfirm' if [ $? -eq 0 ]; then - PKG=$(*.pkg.tar.zst) - cp $PKG /repo/ - repo-add /repo/nyyu.db.tar.zst $PKG + for pkg in *.pkg.tar.zst ; do + cp $pkg /repo/ + repo-add /repo/nyyu.db.tar.zst /repo/$pkg + done fi cd .. done