Remove dead code in build.ps1 after -help option was added (#1430)
authorSantiago Fernandez Madero <safern@microsoft.com>
Thu, 9 Jan 2020 01:32:03 +0000 (17:32 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2020 01:32:03 +0000 (17:32 -0800)
eng/build.ps1

index 34efe4d..159f4b6 100644 (file)
@@ -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