diff --git a/Img2Ffu.Library/Writer/CatalogFactory.cs b/Img2Ffu.Library/Writer/CatalogFactory.cs index 3b28daf..4444e8d 100644 --- a/Img2Ffu.Library/Writer/CatalogFactory.cs +++ b/Img2Ffu.Library/Writer/CatalogFactory.cs @@ -90,8 +90,8 @@ internal static byte[] SignCatalogFile(byte[] catalogData, string secureBootSign using (Process process = new()) { - string programFileName = secureBootSigningCommand.Split(" ")[0]; - string programArguments = (string.Concat(secureBootSigningCommand.AsSpan(programFileName.Length), string.Format("\"{0}\"", catalog))).Trim(); + string programFileName = secureBootSigningCommand.Split(' ')[0]; + string programArguments = $"{secureBootSigningCommand.AsSpan(programFileName.Length)} \"{catalog}\"".Trim(); process.StartInfo.FileName = programFileName; process.StartInfo.Arguments = programArguments;