mirror of
https://github.com/cmderdev/cmder.git
synced 2025-04-19 08:02:31 +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) {
|
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
||||||
Write-Verbose "Packing Cmder $version in $saveTo..."
|
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()) {
|
foreach ($t in $targets.GetEnumerator()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user