aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAikar <[email protected]>2016-05-12 21:37:14 -0400
committerAikar <[email protected]>2016-05-12 21:37:14 -0400
commit9a0f54ce99c6b20ad4bfa477ffb717259926f07c (patch)
tree1b1b84d7b35eb1986c33918defc01a4d9ed83987
parent0ebd642d150a361b7dcae2e4989c8687bf0f9735 (diff)
downloadPaper-9a0f54ce99c6b20ad4bfa477ffb717259926f07c.tar.gz
Paper-9a0f54ce99c6b20ad4bfa477ffb717259926f07c.zip
Use a more reliable fixed width sequence for rebuild patches
-rwxr-xr-xscripts/rebuildPatches.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rebuildPatches.sh b/scripts/rebuildPatches.sh
index d7eb8c1939..1cdf602de7 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