From: Hasan Wan Date: Thu, 22 Dec 2011 09:27:51 +0000 (+0800) Subject: bug fix: typo, get nothing when probe the last patch number X-Git-Tag: v0.1~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cd7de55885e833cdc7f2ea24fc5037fb57504f9;p=tools%2Fgbs.git bug fix: typo, get nothing when probe the last patch number --- diff --git a/data/packaging.sh b/data/packaging.sh index e23cd3b..f999ebf 100644 --- a/data/packaging.sh +++ b/data/packaging.sh @@ -146,7 +146,7 @@ update_patches() num=0 else # The first patch number - num=$(grep "^Patch[0-9]\+" $spec |sed -n 's/Patch\([0-9]*\):.*/\1/' |sort -n |tail -1) + num=$(grep "^Patch[0-9]\+" $spec |sed 's/Patch\([0-9]*\):.*/\1/' |sort -n |tail -1) num=$(expr $num + 1) fi