mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Delete all except git.exe, reducing final size
Using git-$COMMAND is no longer supported anyway.
This commit is contained in:
parent
8b8f98c078
commit
004761b32f
@ -63,10 +63,5 @@ function Digest-MD5 ($path) {
|
||||
|
||||
function Cleanup-Git () {
|
||||
$gitdir = '/vendor/msysgit/libexec/git-core/'
|
||||
Get-Childitem $gitdir -Filter git-* | Where { $_ -NotMatch '--' } | Foreach-Object {
|
||||
'@' + $_.BaseName.Split("-") -join ' ' + ' $*' | Set-Content -Path $_.BaseName'.bat'
|
||||
Remove-Item $_.FullName
|
||||
}
|
||||
# Cleanup any missed files
|
||||
Get-Childitem $gitdir -Exclude git.exe,*.bat | Where-Object{!($_.PSIsContainer)} | Foreach-Object { Remove-Item $_.FullName }
|
||||
Get-Childitem $gitdir -Exclude git.exe | Where-Object{!($_.PSIsContainer)} | Foreach-Object { Remove-Item $_.FullName }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user