Преглед изворни кода

Updating deployment script

Sebastien Ros пре 8 година
родитељ
комит
fa5e73a6fc
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      deploynuget.ps1

+ 2 - 2
deploynuget.ps1

@@ -1,11 +1,11 @@
 $projectjson = ".\jint\project.json"
 $projectjson = ".\jint\project.json"
 
 
-if(![System.IO.File]::Exists(".\.nuget\nuget.exe")){
+if(![System.IO.Directory]::Exists("./.nuget")){
   New-Item ".nuget" -type directory
   New-Item ".nuget" -type directory
   Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "./.nuget/nuget.exe"
   Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "./.nuget/nuget.exe"
 }
 }
 
 
-if([System.IO.File]::Exists("./artifacts")){
+if([System.IO.Directory]::Exists("./artifacts")){
   Remove-Item .\artifacts -Force -Recurse
   Remove-Item .\artifacts -Force -Recurse
 }
 }