mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2025-10-30 06:07:56 +00:00
Compare commits
2 Commits
9fa53a0255
...
222b253e3c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
222b253e3c | ||
|
|
20a178b1f3 |
@@ -15,6 +15,7 @@
|
|||||||
- **scoop-version:** Fix logic error caused by missing brackets ([#6463](https://github.com/ScoopInstaller/Scoop/issues/6463))
|
- **scoop-version:** Fix logic error caused by missing brackets ([#6463](https://github.com/ScoopInstaller/Scoop/issues/6463))
|
||||||
- **core|manifest:** Avoid error messages when searching non-existent 'deprecated' directory ([#6471](https://github.com/ScoopInstaller/Scoop/issues/6471))
|
- **core|manifest:** Avoid error messages when searching non-existent 'deprecated' directory ([#6471](https://github.com/ScoopInstaller/Scoop/issues/6471))
|
||||||
- **path:** Trim ending slash when initializing paths ([#6501](https://github.com/ScoopInstaller/Scoop/issues/6501))
|
- **path:** Trim ending slash when initializing paths ([#6501](https://github.com/ScoopInstaller/Scoop/issues/6501))
|
||||||
|
- **checkver:** Allow script to run when URL fetch fails but script exists ([#6490](https://github.com/ScoopInstaller/Scoop/issues/6490))
|
||||||
|
|
||||||
### Code Refactoring
|
### Code Refactoring
|
||||||
|
|
||||||
|
|||||||
@@ -281,11 +281,16 @@ while ($in_progress -gt 0) {
|
|||||||
}
|
}
|
||||||
$err = $ev.SourceEventArgs.Error
|
$err = $ev.SourceEventArgs.Error
|
||||||
if ($err) {
|
if ($err) {
|
||||||
next "$($err.message)`r`nURL $url is not valid"
|
if (!$script) {
|
||||||
continue
|
next "$($err.message)`r`nURL $url is not valid"
|
||||||
|
continue
|
||||||
|
} else {
|
||||||
|
# Run script despite URL download failure
|
||||||
|
Write-Host "$($err.message)`r`nURL $url is not valid. Falling back to checkver.script ..."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($url) {
|
if ($url -and !$err) {
|
||||||
$ms = New-Object System.IO.MemoryStream
|
$ms = New-Object System.IO.MemoryStream
|
||||||
$ms.Write($result, 0, $result.Length)
|
$ms.Write($result, 0, $result.Length)
|
||||||
$ms.Seek(0, 0) | Out-Null
|
$ms.Seek(0, 0) | Out-Null
|
||||||
|
|||||||
Reference in New Issue
Block a user