major update to override Write-Output func

This commit is contained in:
2023-10-05 13:11:38 -04:00
parent 31a06a9206
commit bbb4884818
52 changed files with 377 additions and 378 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ If ( Test-Path $FILE ) { Clear-Content -Path $FILE -Force }
Function Write-LineToFile {
param([Parameter(Mandatory=$true)][string]$Path,[Parameter(Mandatory=$true)][string]$Line)
If ( -not (Test-Path $Path) ) {
LogMsg "Creating file ""${Path}"""
Write-Output "Creating file ""${Path}"""
Try { New-Item -Path $Path -ItemType File -Force | Out-Null }
Catch { LogErr $_.Exception.Message }
}