mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-22 14:00: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
|
return 0
|
||||||
else
|
else
|
||||||
echo "No new patch level found: ${next}" >&2
|
echo "No new patch level found: ${next}" >&2
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
newpkgver=$(newPkgVer)
|
newpkgver=$(newPkgVer)
|
||||||
|
[ -z "$newpkgver" ] && exit 0
|
||||||
sed -i "s/^pkgver=.*\$/pkgver=${newpkgver}/g" $PKGBUILD
|
sed -i "s/^pkgver=.*\$/pkgver=${newpkgver}/g" $PKGBUILD
|
||||||
sed -i "s/^pkgrel=.*\$/pkgrel=1/g" $PKGBUILD
|
sed -i "s/^pkgrel=.*\$/pkgrel=1/g" $PKGBUILD
|
||||||
pkgver=$(source $PKGBUILD; echo $pkgver)
|
pkgver=$(source $PKGBUILD; echo $pkgver)
|
||||||
|
|
Loading…
Reference in a new issue