bug fix: typo, get nothing when probe the last patch number
authorHasan Wan <hasan.wan@intel.com>
Thu, 22 Dec 2011 09:27:51 +0000 (17:27 +0800)
committerHasan Wan <hasan.wan@intel.com>
Thu, 22 Dec 2011 09:27:51 +0000 (17:27 +0800)
data/packaging.sh

index e23cd3b..f999ebf 100644 (file)
@@ -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