fix var name typo

This commit is contained in:
OCram85 2018-03-22 14:59:19 +01:00
parent 5983c5bb46
commit e1976bd2fe

View File

@ -182,8 +182,8 @@ function Connect-To {
FtpMode = 'Passive'
}
try {
$FTPSessionOption = New-WinSCPSessionOption @FTPSessionOption
$Global:WinSCPSession = New-WinSCPSession @WinSCPConParams
$FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
$Global:WinSCPSession = New-WinSCPSession @FTPSessionOption
}
catch {
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type