projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9cda81
)
Remove dead code in build.ps1 after -help option was added (#1430)
author
Santiago Fernandez Madero
<safern@microsoft.com>
Thu, 9 Jan 2020 01:32:03 +0000
(17:32 -0800)
committer
GitHub
<noreply@github.com>
Thu, 9 Jan 2020 01:32:03 +0000
(17:32 -0800)
eng/build.ps1
patch
|
blob
|
history
diff --git
a/eng/build.ps1
b/eng/build.ps1
index
34efe4d
..
159f4b6
100644
(file)
--- 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