Skip to content

Commit

Permalink
Rename Overwrite-Files function to follow PowerShell naming convention (
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored May 20, 2024
1 parent 2834b4f commit c4c4c99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chcl3.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ Function Stop-Services {
For-Each -Path "data\services.txt" -Delimiter " " -Length 1 -Lambda $Handler
}

Function OverWrite-Files {
Function Overwrite-Files {
[ScriptBlock]$Handler = {
Param( [string]$FilePath )

[string]$Status = "-"

Clear-Content $FilePath
Clear-Content $FilePath -Force
Print -Message "$Status $FilePath"
}

Expand Down Expand Up @@ -527,7 +527,7 @@ Function Main {
}

Stop-Services
OverWrite-Files
Overwrite-Files
Update-RegistryKeyValues
Disable-ScheduledTasks
Uninstall-WindowsUpdates
Expand Down

0 comments on commit c4c4c99

Please sign in to comment.