1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-18 11:22:15 +01:00

Better msysgit support in rebuildPatches

This commit is contained in:
Byteflux 2015-04-17 03:05:37 -07:00
parent 41cb01fa3f
commit 027d6a18ec

View file

@ -12,7 +12,12 @@ function cleanupPatches {
testver=$(echo "$diffs" | tail -n 2 | grep -ve "^$" | tail -n 1 | grep "$gitver")
if [ "x$testver" != "x" ]; then
diffs=$(echo "$diffs" | head -n -2)
mingw=$(uname -s | grep "MINGW")
if [ "x$mingw" != "x" ]; then
diffs=$(echo "$diffs" | head -n $(($(echo "$diffs" | wc -l | sed -r 's/^ +//' | cut -d ' ' -f 1) - 2)))
else
diffs=$(echo "$diffs" | head -n -2)
fi
fi