diff --git a/eng/build.ps1 b/eng/build.ps1 index 34efe4dfe9c123..159f4b6a8b21a6 100644 --- a/eng/build.ps1 +++ b/eng/build.ps1 @@ -53,11 +53,6 @@ function Get-Help() { Write-Host "The above arguments can be shortened as much as to be unambiguous (e.g. -con for configuration, -t for test, etc.)." } -# Exit if script has been dot-sourced -if ($MyInvocation.InvocationName -eq ".") { - exit 0 -} - if ($help -or (($null -ne $properties) -and ($properties.Contains('/help') -or $properties.Contains('/?')))) { Get-Help exit 0