소스 검색

don't download if not needed

Oren Novotny 9 년 전
부모
커밋
19eed96ebf
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 1
      Ix.NET/Source/build-new.ps1
  2. 3 2
      Rx.NET/Source/build-new.ps1

+ 3 - 1
Ix.NET/Source/build-new.ps1

@@ -2,7 +2,9 @@ $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
 
 $configuration = "Release"
 
-wget "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -outfile .\nuget.exe
+if (!(Test-Path .\nuget.exe)) {
+    wget "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -outfile .\nuget.exe
+}
 
 $msbuild = Get-ItemProperty "hklm:\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0"
 

+ 3 - 2
Rx.NET/Source/build-new.ps1

@@ -2,8 +2,9 @@ $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
 
 $configuration = "Release"
 
-wget "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -outfile .\nuget.exe
-
+if (!(Test-Path .\nuget.exe)) {
+    wget "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -outfile .\nuget.exe
+}
 $msbuild = Get-ItemProperty "hklm:\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0"
 
 # TODO: if not found, bail out