diff --git a/scripts/Common/Config/powershell/profile.ps1 b/scripts/Common/Config/powershell/profile.ps1 index 75a1ecbc..dff0d567 100644 --- a/scripts/Common/Config/powershell/profile.ps1 +++ b/scripts/Common/Config/powershell/profile.ps1 @@ -31,7 +31,7 @@ $null = New-Module { $dirName = Split-Path -Parent $fileName; if (-not (Test-Path -PathType Container $dirName)) { - New-Item -ItemType Directory $dirName; + $null = New-Item -ItemType Directory $dirName; } if ((Test-Path -PathType Leaf $fileName) -and (-not $Overwrite)) {