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
+3 -3
View File
@@ -23,7 +23,7 @@ If ( $LFCLI ) {
$Message = ""
If ( Test-Path $FileToUpload ) {
LogMsg "Uploading ""${FileToUpload}"""
Write-Output "Uploading ""${FileToUpload}"""
If ( $DeleteAfterUpload ) {
Try { Start-Process "${LFCLI}" -ArgumentList "filedrop /url:${FiledropURL} /from:""${From}"" /subject:""${Subject}"" /msg:""${Message}"" /c:n /deleteAfterUpload /f:""${FileToUpload}""" -Wait }
@@ -34,6 +34,6 @@ If ( $LFCLI ) {
Catch { LogErr $_.Exception.Message }
}
}
Else { LogMsg "The specified file does not exist: ""${FileToUpload}""" }
Else { Write-Output "The specified file does not exist: ""${FileToUpload}""" }
}
Else { LogMsg "Could not upload any data because the LiquidFiles CLI tool was not found" }
Else { Write-Output "Could not upload any data because the LiquidFiles CLI tool was not found" }