makechrootpkg: do not run namcap as root

This commit is contained in:
Pierre Schmitz 2012-10-03 12:32:55 +02:00
parent 37bb1d33a7
commit a26416dca3
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ if $run_namcap; then
pacman -S --needed --noconfirm namcap
for pkgfile in /build/PKGBUILD /pkgdest/*.pkg.tar.?z; do
echo "Checking \${pkgfile##*/}"
namcap "\$pkgfile" 2>&1 | tee "/build/\${pkgfile##*/}-namcap.log"
sudo -u nobody namcap "\$pkgfile" 2>&1 | tee "/build/\${pkgfile##*/}-namcap.log"
done
fi