fix the delay

This commit is contained in:
kawaiizenbo 2021-12-10 00:35:54 -07:00
parent ba13381799
commit ef4b7af9e0

View file

@ -25,6 +25,9 @@ namespace RepoFullDownloader_Core
{
Directory.CreateDirectory("./output/");
}
// Load Options from 'options.json'
string optionsJson = File.ReadAllText("./options.json");
options = JsonSerializer.Deserialize<Options>(optionsJson);
if (args.Length != 0)
{
string url = args[0];
@ -38,7 +41,7 @@ namespace RepoFullDownloader_Core
}
try
{
DownloadRepo(url, false);
DownloadRepo(url, options.originalFilenames);
}
catch(Exception)
{
@ -57,10 +60,6 @@ namespace RepoFullDownloader_Core
return;
}
// Load Options from 'options.json'
string optionsJson = File.ReadAllText("./options.json");
options = JsonSerializer.Deserialize<Options>(optionsJson);
foreach (Repo r in options.repos)
{
if (r.isInstaller)