Fix FTP Connection Error (#29)

* fixes #27
* fix var name typo
* bump version
This commit is contained in:
OCram85 2018-03-26 13:01:34 +02:00 committed by GitHub
parent 680f37c00e
commit ab13962f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version: 0.2.2.{build}
version: 0.2.3.{build}
#branches:
# only:

View File

@ -182,7 +182,8 @@ function Connect-To {
FtpMode = 'Passive'
}
try {
$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