Fix: Update pkgrel only when version did change

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-04-15 11:09:04 +02:00
parent 30969e4f5f
commit b02f6dff07
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,6 @@ VER=$(curl -sSf https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-
# Insert latest version into PKGBUILD and update hashes
sed -i \
-e "s/^pkgver=.*/pkgver=${VER}/" \
-e 's/pkgrel=.*/pkgrel=1/' \
PKGBUILD
# Check whether this changed anything
@ -23,6 +22,10 @@ if (git diff --exit-code PKGBUILD); then
exit 0
fi
sed -i \
-e 's/pkgrel=.*/pkgrel=1/' \
PKGBUILD
updpkgsums
# Update .SRCINFO