1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-15 23:11:11 +00:00

fix(windows): fix encoding issues in PowerShell scripts

- Simplified banner in install.ps1 and ui.ps1 to avoid Unicode box-drawing
  characters that caused parsing errors on some Windows systems
- Fixed PowerShell 5.1 compatibility for ANSI color codes using [char]27
- Renamed Show-Help to Show-InstallerHelp to avoid potential conflicts
- Changed -Help parameter to -ShowHelp for consistency with mole.ps1
This commit is contained in:
Bhadra
2026-01-08 14:46:05 +05:30
parent a4b5fe77cf
commit a53b48ef3b
2 changed files with 25 additions and 31 deletions

View File

@@ -334,19 +334,10 @@ function Show-Banner {
$cyan = $script:Colors.Cyan
$nc = $script:Colors.NC
$banner = @"
${purple} ${nc}
${purple} ${nc}
${purple} ${nc}
${purple} ${nc}
${purple} ${nc}
${purple} ${nc}
${cyan}Windows System Maintenance${nc}
"@
Write-Host $banner
Write-Host ""
Write-Host " ${purple}MOLE${nc}"
Write-Host " ${cyan}Windows System Maintenance${nc}"
Write-Host ""
}
function Show-Header {