refactor: fold removal dests through one helper

Seven places in the removal compared a destination casefolded where the
drive folds case, three of them as closures of their own. One function
does it, so every comparison folds the same way.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 06:04:39 +01:00
1 parent 8c74f3f0bc
commit 7284a90a20
5 files changed
+48 -56

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
# and Invoke-WebRequest throws on a cut transfer before the hash is read:
# the site's build rewrites this line there (scripts/sitebootstrap.py).
$mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
$defaultInstallSha256 = "eed68111561f629fcdd392da968628eb9f7a543a8b4d2f82bdd6931ebc9d532d"
$defaultInstallSha256 = "29e7e1ca306f44a6caa9596c200ff5950f34772ef55004ace56375e06f890be1"
# The pin above refuses any changed byte: this cap only stops a body that
# cannot be the installer (a sign-in portal's page) before it is hashed.
$maximumInstallerBytes = 8MB