mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 22:40:54 +01:00
Chassis: print version; don't print N/A
This commit is contained in:
1 parent
eef3afabb7
commit
9bd8a788c8
2 files changed
+6
-8
No files matched your search
@@ -30,13 +30,10 @@ void ffPrintChassis(FFinstance* instance, FFChassisOptions* options)
|
||||
if(options->moduleArgs.outputFormat.length == 0)
|
||||
{
|
||||
ffPrintLogoAndKey(instance, FF_CHASSIS_MODULE_NAME, 0, &options->moduleArgs.key, &options->moduleArgs.keyColor);
|
||||
|
||||
FF_STRBUF_AUTO_DESTROY output = ffStrbufCreateCopy(&result.chassisType);
|
||||
|
||||
if(result.chassisVersion.length > 0)
|
||||
ffStrbufAppendF(&output, " (%s)", result.chassisVersion.chars);
|
||||
|
||||
ffStrbufPutTo(&output, stdout);
|
||||
ffStrbufWriteTo(&result.chassisType, stdout);
|
||||
if (result.chassisVersion.length)
|
||||
printf(" (%s)", result.chassisVersion.chars);
|
||||
putchar('\n');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user