Better msysgit support in rebuildPatches
This commit is contained in:
parent
8bd77dff5a
commit
0b2de42a41
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue