Skip to content

Commit a623b59

Browse files
Armbian: set idLike to id before setting id to "armbian"
1 parent 9130da6 commit a623b59

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/detection/os/os_linux.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ static bool parseOsRelease(const char* fileName, FFOSResult* result)
4949
// Get Armbian version properties and set idLike based on the Armbian image basis
5050
FF_MAYBE_UNUSED static void getArmbianVersion(FFOSResult* result)
5151
{
52-
if(ffStrbufIgnCaseEqualS(&result->id, "ubuntu"))
53-
ffStrbufSetS(&result->idLike, "ubuntu");
54-
else if(ffStrbufIgnCaseEqualS(&result->id, "debian"))
55-
ffStrbufSetS(&result->idLike, "debian");
52+
ffStrbufSet(&result->idLike, &result->id);
5653
ffStrbufSetS(&result->id, "armbian");
5754
ffStrbufClear(&result->versionID);
5855
uint32_t versionStart = ffStrbufFirstIndexC(&result->prettyName, ' ') + 1;

0 commit comments

Comments
 (0)