mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-22 22:10:40 +08:00
fix update hook: linux-phicomm-n1
This commit is contained in:
parent
a81e98398a
commit
e5287ab510
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue