fix partially built warning bug

This commit is contained in:
Ella Stanforth 2021-11-01 10:38:27 +00:00
parent 4cfae86b14
commit 8b32f4058e

View file

@ -110,15 +110,15 @@ genmeta() {
} }
if [ ! -n "$FAKEROOTKEY" ]; then if [ ! -n "$FAKEROOTKEY" ]; then
stat $pkgfile \ if stat $pkgfile \
> /dev/null \ > /dev/null \
2> /dev/null \ 2> /dev/null; then
&& warn 'Package already built' warn 'Package already built'
elif stat $srcdir \
stat $srcdir \
> /dev/null \ > /dev/null \
2> /dev/null \ 2> /dev/null; then
&& warn 'Package partially built' warn 'Package partially built'
fi
make_dir "$srcdir" make_dir "$srcdir"