From c3563257f55bd64419546f7581f4a4147f65cbd8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 1 Feb 2019 11:47:33 +0100 Subject: update-archlinux32-package: first calculate $new_pkgver, then check for equality! --- update-archlinux32-package | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'update-archlinux32-package') diff --git a/update-archlinux32-package b/update-archlinux32-package index ba06e72..d8be21a 100755 --- a/update-archlinux32-package +++ b/update-archlinux32-package @@ -147,15 +147,15 @@ case ${update_path} in grep '^pkgver=' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" | \ cut -d'=' -f2 ) - if [ "${old_pkgver}" = "${new_pkgver}" ]; then - >&2 echo 'nothing to do' - exit - fi new_pkgver=$( printf '%s\n' "${archlinuxewe_PKGBUILD}" | \ grep '^pkgver=' | \ cut -d'=' -f2 ) + if [ "${old_pkgver}" = "${new_pkgver}" ]; then + >&2 echo 'nothing to do' + exit + fi sha512sums=$( cd "${archlinuxewe_git_path}/${pkgname}32" makepkg -g | \ -- cgit v1.2.3-70-g09d2