move sftp before mega
mega is the most annoying mirror for people, it should be a last resort
This commit is contained in:
parent
3e442296f6
commit
e226667746
@ -48,6 +48,20 @@ namespace EftPatchHelper.Tasks
|
|||||||
AnsiConsole.WriteLine("Added MEGA");
|
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)
|
if (_settings.UsingMega() && _options.UploadToMega)
|
||||||
{
|
{
|
||||||
var mega = new MegaUpload(patcherFile, _settings.MegaEmail, _settings.MegaPassword);
|
var mega = new MegaUpload(patcherFile, _settings.MegaEmail, _settings.MegaPassword);
|
||||||
@ -56,20 +70,6 @@ namespace EftPatchHelper.Tasks
|
|||||||
AnsiConsole.WriteLine("Added MEGA");
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user