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:
parent
7267664ed8
commit
914ebe3a74
|
@ -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
|
||||
|
|
|
@ -36,7 +36,7 @@ if [[ ! -f PKGBUILD ]]; then
|
|||
die 'No PKGBUILD file'
|
||||
fi
|
||||
|
||||
. PKGBUILD
|
||||
. ./PKGBUILD
|
||||
pkgbase=${pkgbase:-$pkgname}
|
||||
|
||||
case "$cmd" in
|
||||
|
|
Loading…
Reference in New Issue