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