Skip to content

Commit 2abea59

Browse files
committed
Local Module Publishing with input param
1 parent b8d0431 commit 2abea59

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/public/PublishMTLocal.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ function Publish-MTLocal {
44
[string]$ModuleDirectoryPath
55
)
66

7-
if ($ModuleDirectoryPath -and (-not (Test-Path $ModuleDirectoryPath -PathType Container)) ) {
8-
New-Item $ModuleDirectoryPath -ItemType Directory -Force
7+
if ($ModuleDirectoryPath) {
8+
if (-not (Test-Path $ModuleDirectoryPath -PathType Container)) {
9+
New-Item $ModuleDirectoryPath -ItemType Directory -Force | Out-Null
10+
}
911
} else {
1012
$ModuleDirectoryPath = Get-LocalModulePath
1113
}

0 commit comments

Comments
 (0)