mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 14:06:41 +01:00
Fixes the default byond chat command
This commit is contained in:
@@ -115,13 +115,13 @@ namespace TGServerService
|
||||
}
|
||||
protected override ExitCode Run(IList<string> parameters)
|
||||
{
|
||||
var type = TGByondVersion.Installed;
|
||||
if (parameters.Count > 0)
|
||||
if (parameters[0].ToLower() == "--staged")
|
||||
OutputProc(Instance.GetVersion(TGByondVersion.Staged) ?? "None");
|
||||
type = TGByondVersion.Staged;
|
||||
else if (parameters[0].ToLower() == "--latest")
|
||||
OutputProc(Instance.GetVersion(TGByondVersion.Latest) ?? "Unknown");
|
||||
else
|
||||
OutputProc(Instance.GetVersion(TGByondVersion.Installed) ?? "Uninstalled");
|
||||
type = TGByondVersion.Latest;
|
||||
OutputProc(Instance.GetVersion(type) ?? "None");
|
||||
return ExitCode.Normal;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user