From 4cd7de55885e833cdc7f2ea24fc5037fb57504f9 Mon Sep 17 00:00:00 2001 From: Hasan Wan Date: Thu, 22 Dec 2011 17:27:51 +0800 Subject: [PATCH] bug fix: typo, get nothing when probe the last patch number --- data/packaging.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4