apkgrel: handle missing pkgrel in do_add

This commit is contained in:
Dubiousjim 2013-07-05 00:21:36 -04:00 committed by Natanael Copa
parent 97f790a731
commit f15c630cb8

View File

@ -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
}