diff --git a/build/BuildLinuxTask.cs b/build/BuildLinuxTask.cs index 3ddb7c0..dc43469 100644 --- a/build/BuildLinuxTask.cs +++ b/build/BuildLinuxTask.cs @@ -83,7 +83,7 @@ public override void Run(BuildContext context) private static string GetFFMpegConfigureFlags(BuildContext context) { - var ignoreCommentsAndNewLines = (string line) => !line.StartsWith('#') && !line.StartsWith(' '); + var ignoreCommentsAndNewLines = (string line) => !string.IsNullOrWhiteSpace(line) && !line.StartsWith('#'); var configureFlags = context.FileReadLines("ffprobe.config").Where(ignoreCommentsAndNewLines); var osConfigureFlags = context.FileReadLines($"ffprobe.linux-x64.config").Where(ignoreCommentsAndNewLines); return string.Join(' ', configureFlags) + " " + string.Join(' ', osConfigureFlags); diff --git a/build/BuildMacOSTask.cs b/build/BuildMacOSTask.cs index 5c42e97..6ade354 100644 --- a/build/BuildMacOSTask.cs +++ b/build/BuildMacOSTask.cs @@ -198,7 +198,7 @@ private static void BuildX64(BuildContext context) private static string GetFFMpegConfigureFlags(BuildContext context, string rid) { - var ignoreCommentsAndNewLines = (string line) => !line.StartsWith('#') && !line.StartsWith(' '); + var ignoreCommentsAndNewLines = (string line) => !string.IsNullOrWhiteSpace(line) && !line.StartsWith('#'); var configureFlags = context.FileReadLines("ffprobe.config").Where(ignoreCommentsAndNewLines); var osConfigureFlags = context.FileReadLines($"ffprobe.{rid}.config").Where(ignoreCommentsAndNewLines); return string.Join(' ', configureFlags) + " " + string.Join(' ', osConfigureFlags); diff --git a/build/BuildWIndowsTask.cs b/build/BuildWIndowsTask.cs index d22cd36..91ba4cb 100644 --- a/build/BuildWIndowsTask.cs +++ b/build/BuildWIndowsTask.cs @@ -96,7 +96,7 @@ public override void Run(BuildContext context) private static string GetFFProbConfigureFlags(BuildContext context) { - var ignoreCommentsAndNewLines = (string line) => !line.StartsWith('#') && !line.StartsWith(' '); + var ignoreCommentsAndNewLines = (string line) => !string.IsNullOrWhiteSpace(line) && !line.StartsWith('#'); var configureFlags = context.FileReadLines("ffprobe.config").Where(ignoreCommentsAndNewLines); var osConfigureFlags = context.FileReadLines($"ffprobe.windows-x64.config").Where(ignoreCommentsAndNewLines); return string.Join(' ', configureFlags) + " " + string.Join(' ', osConfigureFlags);