don't destroy patch on failure to unpack/prepare

This commit is contained in:
psykose 2022-05-22 16:44:16 +00:00
parent dc90ce1d1b
commit 662ed43b24
Signed by: psykose
SSH key fingerprint: SHA256:HwlGVJNLZqHoOvMtkshyGaXLkcdbEJahYMlepHFL+Uk

2
apatch
View file

@ -11,7 +11,7 @@ startdir="$PWD"
[ -f APKBUILD ] || ( echo "please run this in a package directory"; exit 1 ) [ -f APKBUILD ] || ( echo "please run this in a package directory"; exit 1 )
[ "$1" != "" ] || ( echo "usage: apatch <patch name>"; exit 1 ) [ "$1" != "" ] || ( echo "usage: apatch <patch name>"; exit 1 )
abuild clean fetch unpack prepare abuild clean fetch unpack prepare || exit 1
# obtain builddir # obtain builddir
. APKBUILD . APKBUILD