Skip to content

Commit 7fa8744

Browse files
committed
Add support for "latest" as version number in darkrift pull
Will download the currently most recent version available.
1 parent e4b8490 commit 7fa8744

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ private static int Pull(PullOptions opts)
214214
}
215215
}
216216

217+
// if version provided is "latest", it is being replaced with currently most recent one
218+
if (opts.Version == "latest")
219+
{
220+
opts.Version = VersionManager.GetLatestDarkRiftVersion();
221+
}
222+
217223
string path = VersionManager.GetInstallationPath(opts.Version, opts.Tier ? ServerTier.Pro : ServerTier.Free, opts.Platform);
218224

219225
if (path == null)

0 commit comments

Comments
 (0)