Tweak for #1
This commit is contained in:
parent
09c14be5dd
commit
4abbf1162d
@ -533,9 +533,12 @@ public class Program
|
|||||||
catch (Exception _)
|
catch (Exception _)
|
||||||
{
|
{
|
||||||
Log.Information("Auth file found but could not be deserialized");
|
Log.Information("Auth file found but could not be deserialized");
|
||||||
Log.Debug("Deleting auth.json");
|
if (!config!.DisableBrowserAuth)
|
||||||
File.Delete("auth.json");
|
{
|
||||||
|
Log.Debug("Deleting auth.json");
|
||||||
|
File.Delete("auth.json");
|
||||||
|
}
|
||||||
|
|
||||||
if (cliNonInteractive)
|
if (cliNonInteractive)
|
||||||
{
|
{
|
||||||
AnsiConsole.MarkupLine($"\n[red]auth.json has invalid JSON syntax. The file can be generated automatically when OF-DL is run in the standard, interactive mode.[/]\n");
|
AnsiConsole.MarkupLine($"\n[red]auth.json has invalid JSON syntax. The file can be generated automatically when OF-DL is run in the standard, interactive mode.[/]\n");
|
||||||
@ -744,10 +747,13 @@ public class Program
|
|||||||
Log.Error("Auth failed");
|
Log.Error("Auth failed");
|
||||||
|
|
||||||
auth = null;
|
auth = null;
|
||||||
if (File.Exists("auth.json"))
|
if (!config!.DisableBrowserAuth)
|
||||||
{
|
{
|
||||||
File.Delete("auth.json");
|
if (File.Exists("auth.json"))
|
||||||
}
|
{
|
||||||
|
File.Delete("auth.json");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!cliNonInteractive && !config!.DisableBrowserAuth)
|
if (!cliNonInteractive && !config!.DisableBrowserAuth)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user