TerminalShell: use ffBinaryExtractStrings result as possible (#1739)

This commit is contained in:
apocelipes
2025-05-06 18:49:29 +08:00
committed by GitHub
parent f270255770
commit 1c7aa89228
@@ -69,6 +69,7 @@ static bool getShellVersionBash(FFstrbuf* exe, FFstrbuf* exePath, FFstrbuf* vers
if (*path == '\0')
path = exe->chars;
ffBinaryExtractStrings(path, extractBashVersion, version, (uint32_t) strlen("@(#)Bash version 0.0.0(0) release GNU"));
if (version->length > 0) return true;
if(!getExeVersionRaw(exe, version))
return false;