ensure that PKGBUILDs aren't sourced via PATH

Fixes FS#36378.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Dave Reisner 2013-08-11 18:09:25 -04:00 committed by Pierre Schmitz
parent 7267664ed8
commit 914ebe3a74
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ if [[ ! -f PKGBUILD ]]; then
die 'This must be run in the directory of a built package.'
fi
. PKGBUILD
. ./PKGBUILD
if [[ $arch == 'any' ]]; then
CARCH='any'
fi

View File

@ -36,7 +36,7 @@ if [[ ! -f PKGBUILD ]]; then
die 'No PKGBUILD file'
fi
. PKGBUILD
. ./PKGBUILD
pkgbase=${pkgbase:-$pkgname}
case "$cmd" in