From ff28f5807b581ddd5c707d7f922e6309b791ee7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 19 Oct 2025 09:42:36 +0800 Subject: [PATCH] Shell: supports brush version detection --- src/detection/terminalshell/terminalshell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/terminalshell/terminalshell.c b/src/detection/terminalshell/terminalshell.c index 032f27cf4..d081e2993 100644 --- a/src/detection/terminalshell/terminalshell.c +++ b/src/detection/terminalshell/terminalshell.c @@ -294,6 +294,8 @@ bool fftsGetShellVersion(FFstrbuf* exe, const char* exeName, FFstrbuf* exePath, return getShellVersionAsh(exe, version); if(ffStrEqualsIgnCase(exeName, "xonsh")) return getShellVersionXonsh(exe, version); + if(ffStrEqualsIgnCase(exeName, "brush")) + return getExeVersionGeneral(exe, version); // brush 0.2.23 (git:2835487) #ifdef _WIN32 if(ffStrEqualsIgnCase(exeName, "powershell") || ffStrEqualsIgnCase(exeName, "powershell_ise"))