diff --git a/build.sh b/build.sh index 92931da..c90124d 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,13 @@ #!/bin/bash +useradd build -m +echo '\nbuild ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers +chown -R build:build * + for d in */ ; do echo "$d" cd "$d" - makepkg -s --skippgpcheck + sudo -u build sh -c 'makepkg -s --skippgpcheck' if [ $? -eq 0 ]; then PKG=$(*.pkg.tar.zst) cp $PKG /repo/