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