Skip to content

Commit

Permalink
fix2 script.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajal4414 authored Nov 24, 2024
1 parent 49a21bb commit 5670a9d
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).Content -split "`n" | Where-Object { $_ -match 'node.*x64\.msi' } | Select-Object -First 1) -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.*x64\.msi' } | Select-Object -First 1) -replace '.*node-v(\d+\.\d+\.\d+).*', '$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 5670a9d

Please sign in to comment.