We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8d0431 commit 2abea59Copy full SHA for 2abea59
1 file changed
src/public/PublishMTLocal.ps1
@@ -4,8 +4,10 @@ function Publish-MTLocal {
4
[string]$ModuleDirectoryPath
5
)
6
7
- if ($ModuleDirectoryPath -and (-not (Test-Path $ModuleDirectoryPath -PathType Container)) ) {
8
- New-Item $ModuleDirectoryPath -ItemType Directory -Force
+ if ($ModuleDirectoryPath) {
+ if (-not (Test-Path $ModuleDirectoryPath -PathType Container)) {
9
+ New-Item $ModuleDirectoryPath -ItemType Directory -Force | Out-Null
10
+ }
11
} else {
12
$ModuleDirectoryPath = Get-LocalModulePath
13
}
0 commit comments