fix update hook: linux-phicomm-n1

This commit is contained in:
Archlinux-Jerry Build Bot 2019-09-19 20:42:50 +08:00
parent a81e98398a
commit e5287ab510

View file

@ -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)