File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -300,16 +300,16 @@ function Install-PSModule {
300300 param (
301301 # Path to the folder where the module source code is located.
302302 [Parameter (Mandatory )]
303- [string ] $ModulePath
303+ [string ] $Path
304304 )
305305
306- $moduleName = Split-Path - Path $ModulePath - Leaf
307- $manifestFilePath = Join-Path - Path $ModulePath " $moduleName .psd1"
306+ $moduleName = Split-Path - Path $Path - Leaf
307+ $manifestFilePath = Join-Path - Path $Path " $moduleName .psd1"
308308 Write-Verbose " - Manifest file path: [$manifestFilePath ]" - Verbose
309309 Resolve-PSModuleDependency - ManifestFilePath $manifestFilePath
310310 $PSModulePath = $env: PSModulePath -split [System.IO.Path ]::PathSeparator | Select-Object - First 1
311311 $codePath = New-Item - Path " $PSModulePath /$moduleName /999.0.0" - ItemType Directory - Force | Select-Object - ExpandProperty FullName
312- Copy-Item - Path " $ModulePath /*" - Destination $codePath - Recurse - Force
312+ Copy-Item - Path " $Path /*" - Destination $codePath - Recurse - Force
313313 LogGroup ' Importing module' {
314314 Import-Module - Name $moduleName - Verbose
315315 }
You can’t perform that action at this time.
0 commit comments