quickfix
This commit is contained in:
parent
d4bf2b7cf6
commit
1ae55c9a16
|
@ -18,7 +18,7 @@ namespace repomgr
|
||||||
{
|
{
|
||||||
if (File.Exists("/tmp/repomgr.lock") && args[1] != "daemon")
|
if (File.Exists("/tmp/repomgr.lock") && args[1] != "daemon")
|
||||||
{
|
{
|
||||||
Console.WriteLine("/tmp/repomgr.lock exists, delete if you are sure that this is the only instance");
|
Console.WriteLine("/tmp/repomgr.lock exists, delete it if you are sure no other process is running");
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
}
|
}
|
||||||
else if (args[1] != "daemon")
|
else if (args[1] != "daemon")
|
||||||
|
@ -129,8 +129,8 @@ namespace repomgr
|
||||||
PrintHelp();
|
PrintHelp();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (File.Exists("/tmp/repomgr.lock"))
|
||||||
File.Delete("/tmp/repomgr.lock");
|
File.Delete("/tmp/repomgr.lock");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void PrintHelp()
|
private static void PrintHelp()
|
||||||
|
@ -144,7 +144,6 @@ namespace repomgr
|
||||||
Console.WriteLine("repomgr <data-path> update <package> [-f]");
|
Console.WriteLine("repomgr <data-path> update <package> [-f]");
|
||||||
Console.WriteLine("repomgr <data-path> update-all");
|
Console.WriteLine("repomgr <data-path> update-all");
|
||||||
Console.WriteLine("repomgr <data-path> daemon");
|
Console.WriteLine("repomgr <data-path> daemon");
|
||||||
Environment.Exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
private static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
||||||
|
|
Loading…
Reference in a new issue