build user
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-05-19 09:54:28 +02:00
parent ec82060c85
commit f0b30ab439

View file

@ -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/