Skip to content
Snippets Groups Projects
Commit 8198ded8 authored by Jim Pryor's avatar Jim Pryor Committed by Natanael Copa
Browse files

abump: verify APKBUILD's version

parent a10203d0
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,12 @@ do_bump() {
. "$a" || exit 1
[ "$pkgname" = "$name" ] || die "$name: APKBUILD has different \$pkgname"
type package | grep -q function || die "$name: missing package()"
case $(apk version --test "$pkgver" "$ver") in
'=') die "$pkgname: already at version $pkgver";;
'>') die "$pkgname: already at newer version $pkgver";;
'<') exit 0;;
*) exit 1;;
esac
) || { rc=1; continue; }
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment