mirror of
https://github.com/luzifer-aur/nerd-fonts-dejavu-complete.git
synced 2024-11-09 14:20:08 +00:00
Reset rel only on updated package
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0843d3183f
commit
8b4f3f0e9e
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue