move sftp before mega

mega is the most annoying mirror for people, it should be a last resort
This commit is contained in:
IsWaffle 2024-03-27 14:52:46 -04:00
parent 3e442296f6
commit e226667746

@ -48,6 +48,20 @@ namespace EftPatchHelper.Tasks
AnsiConsole.WriteLine("Added MEGA");
}
if (_settings.SftpUploads.Count > 0 && _options.UploadToSftpSites)
{
foreach (var sftpInfo in _settings.SftpUploads)
{
if (!sftpInfo.IsValid())
{
continue;
}
AnsiConsole.WriteLine($"Added SFTP: {sftpInfo.Hostname}");
_fileUploads.Add(new SftpUpload(patcherFile, sftpInfo));
}
}
if (_settings.UsingMega() && _options.UploadToMega)
{
var mega = new MegaUpload(patcherFile, _settings.MegaEmail, _settings.MegaPassword);
@ -56,20 +70,6 @@ namespace EftPatchHelper.Tasks
AnsiConsole.WriteLine("Added MEGA");
}
if (_settings.SftpUploads.Count > 0 && _options.UploadToSftpSites)
{
foreach (var sftpInfo in _settings.SftpUploads)
{
if (!sftpInfo.IsValid())
{
continue;
}
AnsiConsole.WriteLine($"Added SFTP: {sftpInfo.Hostname}");
_fileUploads.Add(new SftpUpload(patcherFile, sftpInfo));
}
}
return true;
}