Update sourcetreeapp.csx

This commit is contained in:
Konstantin Safonov 2021-01-19 18:49:04 +03:00 committed by GitHub
parent bb1c456339
commit 4ec0b96a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ Console.Out.WriteLine(
.Select(a => new Uri(a))
.Select(a => new
{
ZipFile = a.ToString(),
ZipUrl = a.ToString(),
Version = new[] { "sourcetree", "enterprise", "setup", }
.Aggregate(Path.GetFileNameWithoutExtension(a.AbsolutePath), (s, ptr) => s.Replace(ptr, "", StringComparison.OrdinalIgnoreCase))
.TrimStart('-', '_')