3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-14 20:10:05 +01:00

Use a more reliable fixed width sequence for rebuild patches

Dieser Commit ist enthalten in:
Aikar 2016-05-12 21:37:14 -04:00
Ursprung 0ebd642d15
Commit 9a0f54ce99

Datei anzeigen

@ -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