From 487963bc932f52f5e35eaaaf14a803432cce10b1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 15 Apr 2021 11:09:04 +0200 Subject: [PATCH] Fix: Update pkgrel only when version did change Signed-off-by: Knut Ahlers --- update_version.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update_version.sh b/update_version.sh index 2471f77..34106bf 100755 --- a/update_version.sh +++ b/update_version.sh @@ -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