major update to override Write-Output func
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user