mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-31 19:32:06 +00:00
apkgrel: handle missing pkgrel in do_add
This commit is contained in:
parent
97f790a731
commit
f15c630cb8
@ -49,7 +49,10 @@ do_add () {
|
||||
&& continue
|
||||
[ -d "$f" ] && f="$f/APKBUILD"
|
||||
old=$(show_plain "$f")
|
||||
setto=$(($old + 1))
|
||||
case $old in
|
||||
[0-9]*) setto=$((old + 1));;
|
||||
*) setto=0;;
|
||||
esac
|
||||
do_set "$f" || return 1
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user