Skip to content

Commit

Permalink
fix script.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajal4414 committed Nov 24, 2024
1 parent 3557da2 commit a77d0a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ $baseUrl = "https://nodejs.org/download/release/latest/"

$softwareList += [PSCustomObject]@{
appName = "Node.js"
version = ((Invoke-WebRequest $baseUrl -UseBasicParsing).Links | Where-Object { $_.Href -like 'node*x64.msi' } | Select-Object -First 1 -ExpandProperty Href) -replace '.*node-v(\d+\.\d+\.\d+).*', '$1'
url = $baseUrl + ((Invoke-WebRequest $baseUrl -UseBasicParsing).Links | Where-Object { $_.Href -like 'node*x64.msi' } | Select-Object -First 1 -ExpandProperty Href)
version = ((Invoke-WebRequest $baseUrl -UseBasicParsing).Links | Where-Object { $_.Href -match 'node-v(\d+\.\d+\.\d+)-x64\.msi' } | Select-Object -First 1).Href -replace '.*node-v(\d+\.\d+\.\d+)-x64\.msi', '$1'
url = "https://nodejs.org" + ((Invoke-WebRequest $baseUrl -UseBasicParsing).Links | Where-Object { $_.Href -match 'node-v(\d+\.\d+\.\d+)-x64\.msi' } | Select-Object -First 1 -ExpandProperty Href)
}

# VS Code
Expand Down

0 comments on commit a77d0a5

Please sign in to comment.