makechrootpkg: do not run namcap as root
This commit is contained in:
parent
37bb1d33a7
commit
a26416dca3
|
@ -275,7 +275,7 @@ if $run_namcap; then
|
||||||
pacman -S --needed --noconfirm namcap
|
pacman -S --needed --noconfirm namcap
|
||||||
for pkgfile in /build/PKGBUILD /pkgdest/*.pkg.tar.?z; do
|
for pkgfile in /build/PKGBUILD /pkgdest/*.pkg.tar.?z; do
|
||||||
echo "Checking \${pkgfile##*/}"
|
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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue