install option (-I) does not require a directory containing a PKGBUILD

Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Andrea Scarpino 2010-10-11 09:54:16 +02:00 committed by Pierre Schmitz
parent 6201853f52
commit 32b55d1587
1 changed files with 1 additions and 1 deletions

View File

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