fix: unset any functions set by apkbuild

This commit is contained in:
ptrcnull 2022-07-30 07:54:57 +02:00
parent aeae707886
commit 24a42cdb5b

3
apatch
View file

@ -44,7 +44,8 @@ abuild clean fetch unpack default_prepare
startdir="$PWD"
srcdir="$startdir/src"
. APKBUILD
test -n "$builddir" || builddir="$srcdir/$pkgname-$pkgver"
unset -f grep cut head git rm mv
[ -n "$builddir" ] || builddir="$srcdir/$pkgname-$pkgver"
patchpath="$startdir/$1"