Package availabity check #176

Closed
aparnajyothi-y wants to merge 4 commits from packagevalidation into main
Showing only changes of commit fb203bee79 - Show all commits

View File

@@ -87,8 +87,12 @@ class NodeBuilder {
#>
Write-Host "Create WorkFolderLocation and ArtifactFolderLocation folders"
New-Item -Path $this.WorkFolderLocation -ItemType "directory"
if (-not (Test-Path -path $this.WorkFolderLocation)) {
New-Item -Path $this.WorkFolderLocation -ItemType "directory"
}
if (-not (Test-Path -path $this.ArtifactFolderLocation)) {
New-Item -Path $this.ArtifactFolderLocation -ItemType "directory"
}
Write-Host "Download Node.js $($this.Version) [$($this.Architecture)] executable..."
$binariesArchivePath = $this.Download()