mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
Use a more reliable fixed width sequence for rebuild patches
This commit is contained in:
@@ -38,10 +38,10 @@ function savePatches {
|
|||||||
echo "REBASE DETECTED - PARTIAL SAVE"
|
echo "REBASE DETECTED - PARTIAL SAVE"
|
||||||
last=$(cat "$basedir/$target/.git/rebase-apply/last")
|
last=$(cat "$basedir/$target/.git/rebase-apply/last")
|
||||||
next=$(cat "$basedir/$target/.git/rebase-apply/next")
|
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
|
do
|
||||||
if [ $i -lt $next ]; then
|
if [ $i -lt $next ]; then
|
||||||
rm 0${i}-*.patch
|
rm ${i}-*.patch
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user