Fix slop remains (#4640)

* Fix slop remains

Chris likes to vibe code. AI likes to use different types of dashes (em-dashes, en-dashes), instead of regular dashes (-).

On PowerShell 7 this appears to work. The parser doesn't care. But, what about PowerShell 5? It begins throwing errors about the ampersand. Loading it in the ISE reveals how it stops parsing the syntax correctly when it encounters em-dashes. Rather than displaying them as such, the ISE displays them as —.

Chris, if you want to vibe code, I don't mind. But at least use regular dashes.

Anyway, I won't fix the AI code. I just want to make it work on my beloved powershell 5.

* Apparently this file is important
This commit is contained in:
CodingWonders
2026-06-08 16:43:04 +02:00
committed by GitHub
parent 9fdf944ef9
commit 297b3079e5
4 changed files with 29 additions and 29 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ function Invoke-WinUtilISOMountAndVerify {
if (-not (Test-Path $wimPath) -and -not (Test-Path $esdPath)) {
Dismount-DiskImage -ImagePath $isoPath
Write-Win11ISOLog "ERROR: install.wim/install.esd not found not a valid Windows ISO."
Write-Win11ISOLog "ERROR: install.wim/install.esd not found - not a valid Windows ISO."
[System.Windows.MessageBox]::Show(
"This does not appear to be a valid Windows ISO.`n`ninstall.wim / install.esd was not found.",
"Invalid ISO", "OK", "Error")
@@ -547,7 +547,7 @@ function Invoke-WinUtilISOCleanAndReset {
Log "Temp directory deleted successfully."
}
} else {
Log "No temp directory found resetting UI."
Log "No temp directory found - resetting UI."
}
SetProgress "Resetting UI..." 95