Commit fa3659a
committed
Fetch SHA256 checksum and handle failures
Replace returning the checksum link with an actual SHA256 value by invoking Invoke-EvergreenRestMethod on the downloads.windows.checksumLink, splitting the response to extract the checksum, and assigning it to Sha256. Add try/catch to emit a warning and set Sha256 to $null on failure, preserving existing metadata (Version, Build, Edition, Date, Size, Type). Improves robustness when checksum retrieval fails.1 parent 3c88b4b commit fa3659a
1 file changed
Lines changed: 11 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
31 | | - | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
| |||
0 commit comments