Reset rel only on updated package

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-12-28 12:39:52 +01:00
parent 0843d3183f
commit 8b4f3f0e9e
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -10,7 +10,6 @@ VER=$(curl -sSfL "https://lv.luzifer.io/catalog-api/nerd-fonts/latest.txt?p=vers
# Insert latest version into PKGBUILD # Insert latest version into PKGBUILD
sed -i \ sed -i \
-e "s/^pkgver=.*/pkgver=${VER}/" \ -e "s/^pkgver=.*/pkgver=${VER}/" \
-e 's/pkgrel=.*/pkgrel=1/' \
PKGBUILD PKGBUILD
# Check whether this changed anything # Check whether this changed anything
@ -19,6 +18,11 @@ if (git diff --exit-code PKGBUILD); then
exit 0 exit 0
fi fi
# Reset pkgrel
sed -i \
-e 's/pkgrel=.*/pkgrel=1/' \
PKGBUILD
# Update source hashes # Update source hashes
updpkgsums updpkgsums