File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 98
98
$secureKey = $env:SFTP_KEY | ConvertTo-SecureString -AsPlainText -Force
99
99
Set-Content -Path $key -Value $secureKey -Force -ErrorAction Stop
100
100
Install-Module -Name Posh-SSH -Force -Scope CurrentUser -ErrorAction Stop
101
- $session = New-SFTPSession -ComputerName $env:SFTP_HOST -Username $env:SFTP_USER -KeyFile $key -AcceptKey -ErrorAction Stop
101
+ $session = New-SFTPSession -ComputerName $env:SFTP_HOST -UserName $env:SFTP_USER -KeyFile $key -AcceptKey -ErrorAction Stop
102
102
# Remove all old installers
103
103
Get-SFTPChildItem -SessionId $session.SessionId -Path '/home/public/' | Where-Object { $_.Name -like 'STLGameLauncher-Setup-*.exe' } | ForEach-Object { Remove-SFTPItem -SessionId $session.SessionId -Path $_.FullName -ErrorAction Stop }
104
104
# Upload the new installer
You can’t perform that action at this time.
0 commit comments