mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 14:06:41 +01:00
Simplify OD install paths
This commit is contained in:
@@ -501,10 +501,7 @@ namespace Tgstation.Server.Host.Components.Engine
|
||||
/// <returns>A <see cref="ValueTask"/> representing the running operation.</returns>
|
||||
async ValueTask InstallVersionFiles(JobProgressReporter progressReporter, ByondVersion version, Stream customVersionStream, CancellationToken cancellationToken)
|
||||
{
|
||||
var installFullPath = ioManager.ResolvePath(
|
||||
version.Engine == EngineType.Byond
|
||||
? version.ToString()
|
||||
: Guid.NewGuid().ToString()); // too much BS with OD i swear, we can't use the provided committish because it may expand later
|
||||
var installFullPath = ioManager.ResolvePath(version.ToString());
|
||||
async ValueTask DirectoryCleanup()
|
||||
{
|
||||
await ioManager.DeleteDirectory(installFullPath, cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user