File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/PSAppDeployToolkit.Tools Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1010# Dot-source our imports.
1111if (! $Module.Compiled )
1212{
13- & $CommandTable .' New-Variable' - Name ModuleFiles - Option Constant - Value ([System.IO.FileInfo []]$ ([System.IO.Directory ]::GetFiles(" $PSScriptRoot \Private" ); [System.IO.Directory ]::GetFiles(" $PSScriptRoot \Public" )))
13+ # & $CommandTable.'New-Variable' -Name ModuleFiles -Option Constant -Value ([System.IO.FileInfo[]]$([System.IO.Directory]::GetFiles("$PSScriptRoot\Private"); [System.IO.Directory]::GetFiles("$PSScriptRoot\Public")))
14+ & $CommandTable .' New-Variable' - Name ModuleFiles - Option Constant - Value ([System.IO.FileInfo []]$ ([System.IO.Directory ]::GetFiles(" $PSScriptRoot \Public" )))
1415 & $CommandTable .' New-Variable' - Name FunctionNames - Option Constant - Value ($ModuleFiles | & { process { return $_.BaseName } })
1516 & $CommandTable .' New-Variable' - Name FunctionPaths - Option Constant - Value ($FunctionNames -replace ' ^' , ' Microsoft.PowerShell.Core\Function::' )
1617 & $CommandTable .' Remove-Item' - LiteralPath $FunctionPaths - Force - ErrorAction Ignore
You can’t perform that action at this time.
0 commit comments