We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598aae8 commit 12ae3a0Copy full SHA for 12ae3a0
TACTTool/Program.cs
@@ -298,6 +298,23 @@ private static async Task CommandLineArgHandler(ParseResult result)
298
build.Settings.BuildConfig ??= splitLine[1];
299
build.Settings.CDNConfig ??= splitLine[2];
300
}
301
+
302
+ // If we have a build config but no cdn config, take the first available cdn config with that build config
303
+ if (!string.IsNullOrEmpty(build.Settings.BuildConfig) && build.Settings.CDNConfig == null)
304
+ {
305
+ foreach (var line in versions.Split('\n'))
306
307
+ if (line.StartsWith('#'))
308
+ continue;
309
310
+ var splitLine = line.Split('|');
311
+ if (splitLine[1] == build.Settings.BuildConfig)
312
313
+ build.Settings.CDNConfig = splitLine[2];
314
+ break;
315
+ }
316
317
318
319
320
0 commit comments