summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakechrootpkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 572a215..65db5c5 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -87,7 +87,7 @@ if [ "$EUID" != '0' ]; then
exit 1
fi
-if [ ! -f PKGBUILD ]; then
+if [ ! -f PKGBUILD -a -z "$install_pkg" ]; then
echo 'This must be run in a directory containing a PKGBUILD.'
exit 1
fi