diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-07-05 00:21:36 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-09 07:12:40 +0000 |
commit | f15c630cb888dad70809efc12644a4570372320b (patch) | |
tree | 57b230fd516df7fb06d1b7c8b3932fce282a4217 /apkgrel.in | |
parent | 97f790a73132cfd77eb13e4fc8acc4e14ef37975 (diff) | |
download | abuild-f15c630cb888dad70809efc12644a4570372320b.tar.gz abuild-f15c630cb888dad70809efc12644a4570372320b.tar.bz2 abuild-f15c630cb888dad70809efc12644a4570372320b.tar.xz abuild-f15c630cb888dad70809efc12644a4570372320b.zip |
apkgrel: handle missing pkgrel in do_add
Diffstat (limited to 'apkgrel.in')
-rw-r--r-- | apkgrel.in | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |