mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
fix(Shell): fix shell version printing
This commit is contained in:
@@ -40,11 +40,17 @@ static bool getFileVersion(const char* exePath, FFstrbuf* version)
|
||||
|
||||
static bool getExeVersionRaw(FFstrbuf* exe, FFstrbuf* version)
|
||||
{
|
||||
return ffProcessAppendStdOut(version, (char* const[]) {
|
||||
bool ok = ffProcessAppendStdOut(version, (char* const[]) {
|
||||
exe->chars,
|
||||
"--version",
|
||||
NULL
|
||||
}) == NULL;
|
||||
if (ok)
|
||||
{
|
||||
ffStrbufTrim(version, '\n');
|
||||
ffStrbufTrim(version, ' ');
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
||||
static bool getExeVersionGeneral(FFstrbuf* exe, FFstrbuf* version)
|
||||
|
||||
Reference in New Issue
Block a user