mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
OS (Linux): don't use rolling as os version
This commit is contained in:
@@ -12,7 +12,6 @@ static inline bool allRelevantValuesSet(const FFOSResult* result)
|
||||
return result->id.length > 0
|
||||
&& result->name.length > 0
|
||||
&& result->prettyName.length > 0
|
||||
&& result->version.length > 0
|
||||
;
|
||||
}
|
||||
|
||||
@@ -175,6 +174,10 @@ static void detectOS(FFOSResult* os)
|
||||
ffStrbufSetStatic(&os->idLike, "debian");
|
||||
return;
|
||||
}
|
||||
|
||||
// For archlinux
|
||||
if (ffStrbufEqualS(&os->version, "rolling"))
|
||||
ffStrbufClear(&os->version);
|
||||
}
|
||||
|
||||
if(parseOsRelease(FASTFETCH_TARGET_DIR_ETC "/os-release", os) && allRelevantValuesSet(os))
|
||||
|
||||
Reference in New Issue
Block a user