mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-03 13:12:15 +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
|
&& continue
|
||||||
[ -d "$f" ] && f="$f/APKBUILD"
|
[ -d "$f" ] && f="$f/APKBUILD"
|
||||||
old=$(show_plain "$f")
|
old=$(show_plain "$f")
|
||||||
setto=$(($old + 1))
|
case $old in
|
||||||
|
[0-9]*) setto=$((old + 1));;
|
||||||
|
*) setto=0;;
|
||||||
|
esac
|
||||||
do_set "$f" || return 1
|
do_set "$f" || return 1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user