Commit aee4642a authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix negative release

parent e4fb20a0
......@@ -127,6 +127,7 @@ decrement_release()
{
local NUMPART=$(echo $1 | sed -e "s|[^0-9].*||g")
[ -n "$NUMPART" ] || NUMPART=1
[ "$NUMPART" = "0" ] && NUMPART=1
echo $(($NUMPART - 1))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment