Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/detection/os/os_linux.c
Co-authored-by: Copilot <[email protected]>
  • Loading branch information
CarterLi and Copilot authored Jun 14, 2025
commit 7c59dd19f175c97997707c6305fb68e87cf9a2ae
2 changes: 1 addition & 1 deletion src/detection/os/os_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static void detectOS(FFOSResult* os)
parseLsbRelease(FASTFETCH_TARGET_DIR_ETC "/lsb-release", os);
if (os->id.length == 0 || os->name.length > 0 || os->prettyName.length > 0)
parseOsRelease(FASTFETCH_TARGET_DIR_USR "/lib/os-release", os);
if (os->id.length == 0 || os->name.length > 0 || os->prettyName.length > 0)
if (os->id.length == 0 && os->name.length == 0 && os->prettyName.length == 0)
{
// HarmonyOS has no os-release file
if (ffStrbufEqualS(&instance.state.platform.sysinfo.name, "HarmonyOS"))
Expand Down