diff options
-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 } |