Shell (Windows): tidy

This commit is contained in:
李通洲
2023-11-18 16:24:23 +08:00
parent 36bf978dc1
commit 4510ef7e1c
+2 -5
View File
@@ -153,17 +153,14 @@ static bool getShellVersionNushell(FFstrbuf* exe, FFstrbuf* version)
#ifdef _WIN32
static bool getShellVersionWinPowerShell(FFstrbuf* exe, FFstrbuf* version)
{
if(ffProcessAppendStdOut(version, (char* const[]) {
return ffProcessAppendStdOut(version, (char* const[]) {
exe->chars,
"-NoLogo",
"-NoProfile",
"-Command",
"$PSVersionTable.PSVersion.ToString()",
NULL
})) return false;
ffStrbufSubstrAfterLastC(version, ' ');
return true;
}) == NULL;
}
#endif