mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-11 16:00:21 +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 () {
|
function Cleanup-Git () {
|
||||||
$gitdir = '/vendor/msysgit/libexec/git-core/'
|
$gitdir = '/vendor/msysgit/libexec/git-core/'
|
||||||
Get-Childitem $gitdir -Filter git-* | Where { $_ -NotMatch '--' } | Foreach-Object {
|
Get-Childitem $gitdir -Exclude git.exe | Where-Object{!($_.PSIsContainer)} | Foreach-Object { Remove-Item $_.FullName }
|
||||||
'@' + $_.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 }
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user