fix var name typo
This commit is contained in:
parent
5983c5bb46
commit
e1976bd2fe
@ -182,8 +182,8 @@ function Connect-To {
|
|||||||
FtpMode = 'Passive'
|
FtpMode = 'Passive'
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$FTPSessionOption = New-WinSCPSessionOption @FTPSessionOption
|
$FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
|
||||||
$Global:WinSCPSession = New-WinSCPSession @WinSCPConParams
|
$Global:WinSCPSession = New-WinSCPSession @FTPSessionOption
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type
|
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type
|
||||||
|
Loading…
Reference in New Issue
Block a user