diff --git a/PowerShellGitHubDev.psm1 b/PowerShellGitHubDev.psm1 index 203ca1f9a..c77a72e14 100644 --- a/PowerShellGitHubDev.psm1 +++ b/PowerShellGitHubDev.psm1 @@ -74,7 +74,7 @@ function Start-PSBuild { # msbuild is needed to build powershell.exe # msbuild is part of .NET Framework, we can try to get it from well-known location. - if (-nopt $NoPath -and -not (Get-Command -Name msbuild -ErrorAction Ignore)) { + if (-not $NoPath -and -not (Get-Command -Name msbuild -ErrorAction Ignore)) { Write-Verbose "Appending probable Visual C++ tools path" $env:path += ";${env:SystemRoot}\Microsoft.Net\Framework\v4.0.30319" }