mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 08:19:08 +08:00
use Get-ChildItem with excluded files instead of dir
This commit is contained in:
parent
50816c6bfc
commit
f02bbfc5be
@ -61,7 +61,8 @@ $version = Get-VersionStr
|
||||
|
||||
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
||||
Write-Verbose "Packing Cmder $version in $saveTo..."
|
||||
dir $cmderRoot
|
||||
$excluded = (Get-Content -Path "$cmderRoot\packignore") -Split [System.Environment]::NewLine | Where-Object {$_}
|
||||
Get-ChildItem $cmderRoot -Recurse -Force -Exclude $excluded
|
||||
}
|
||||
|
||||
foreach ($t in $targets.GetEnumerator()) {
|
||||
|
Loading…
Reference in New Issue
Block a user