fix the delay
This commit is contained in:
parent
ba13381799
commit
ef4b7af9e0
1 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue