From 9a0f54ce99c6b20ad4bfa477ffb717259926f07c Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 12 May 2016 21:37:14 -0400 Subject: [PATCH] Use a more reliable fixed width sequence for rebuild patches --- scripts/rebuildPatches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/rebuildPatches.sh b/scripts/rebuildPatches.sh index d7eb8c193..1cdf602de 100755 --- a/scripts/rebuildPatches.sh +++ b/scripts/rebuildPatches.sh @@ -38,10 +38,10 @@ function savePatches { echo "REBASE DETECTED - PARTIAL SAVE" last=$(cat "$basedir/$target/.git/rebase-apply/last") next=$(cat "$basedir/$target/.git/rebase-apply/next") - for i in $(seq -w 1 1 $last) + for i in $(seq -f "%04g" 1 1 $last) do if [ $i -lt $next ]; then - rm 0${i}-*.patch + rm ${i}-*.patch fi done else