mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
CommandOption: refactors code with ffStrbufSeparatedContainIgnCaseS
This commit is contained in:
@@ -749,7 +749,12 @@ static void run(FFdata* data)
|
||||
if (useJsonConfig)
|
||||
ffPrintJsonConfig(true /* prepare */, instance.state.resultDoc);
|
||||
else
|
||||
{
|
||||
//If we don't have a custom structure, use the default one
|
||||
if(data->structure.length == 0)
|
||||
ffStrbufAppendS(&data->structure, FASTFETCH_DATATEXT_STRUCTURE); // Cannot use `ffStrbufSetStatic` here because we will modify the string
|
||||
ffPrepareCommandOption(data);
|
||||
}
|
||||
|
||||
ffStart();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user