Skip to content

Commit 3545e31

Browse files
Fix code path assignment to ensure correct directory path retrieval in module installation
1 parent bb2d9b1 commit 3545e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/main.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ switch ($settings) {
2323
Resolve-PSModuleDependency -ManifestFilePath $manifestFilePath
2424
Test-ModuleManifest -Path $manifestFilePath -Verbose
2525
$PSModulePath = $env:PSModulePath -split [System.IO.Path]::PathSeparator | Select-Object -First 1
26-
$codePath = New-Item -Path "$PSModulePath/$moduleName/999.0.0" -ItemType Directory -Force
26+
$codePath = New-Item -Path "$PSModulePath/$moduleName/999.0.0" -ItemType Directory -Force | Select-Object -ExpandProperty FullName
2727
Copy-Item -Path "$modulePath/*" -Destination $codePath -Recurse -Force
2828
Get-ChildItem -Path $codePath -Recurse | Select-Object FullName | Out-String
2929

0 commit comments

Comments
 (0)