From e5287ab510189a21beed3ae3ffe95e6f98148935 Mon Sep 17 00:00:00 2001 From: Archlinux-Jerry Build Bot Date: Thu, 19 Sep 2019 20:42:50 +0800 Subject: [PATCH] fix update hook: linux-phicomm-n1 --- linux-phicomm-n1/buildbot.update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-phicomm-n1/buildbot.update.sh b/linux-phicomm-n1/buildbot.update.sh index c5bfd85..0742250 100644 --- a/linux-phicomm-n1/buildbot.update.sh +++ b/linux-phicomm-n1/buildbot.update.sh @@ -39,11 +39,12 @@ newPkgVer() { return 0 else echo "No new patch level found: ${next}" >&2 - return 1 + return 0 fi } newpkgver=$(newPkgVer) +[ -z "$newpkgver" ] && exit 0 sed -i "s/^pkgver=.*\$/pkgver=${newpkgver}/g" $PKGBUILD sed -i "s/^pkgrel=.*\$/pkgrel=1/g" $PKGBUILD pkgver=$(source $PKGBUILD; echo $pkgver)