4 ms·
Very nice tool. I've long spoiled myself with Powershell's: Invoke-WebRequest eg. # what is the latest release of apache-tomcat? $LINKS=$(Invoke-WebRequ
by desktopninja 5y ago
Very nice tool. I've long spoiled myself with Powershell's:
Invoke-WebRequest
eg. # what is the latest release of apache-tomcat?
$LINKS=$(Invoke-WebRequest -Uri 'https://tomcat.apache.org/download-80.cgi' | Select-Object -ExpandProperty Links)
$LATEST=$($Links | Where-Object -Property href -Match '#8.5.[0-9]+').href.substring(1)
$FETCH=$($Links | Where-Object -Property href -match "apache-tomcat-${LATEST}.zip$").href
- Tepix 5y agoShould it be $LINKS instead of $Links (2x)?
- desktopninja 5y ago"$links" works too because PWSH is not case sensitive. But I should have used $LINKS like you said for cleaner write-up.