mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Shell (Windows): be compatible with fish 4 built by MSYS2
This commit is contained in:
@@ -85,8 +85,9 @@ static bool getShellVersionFish(FFstrbuf* exe, FFstrbuf* version)
|
||||
if(!getExeVersionRaw(exe, version))
|
||||
return false;
|
||||
|
||||
//fish, version 3.6.0
|
||||
ffStrbufSubstrAfterLastC(version, ' ');
|
||||
//fish, version 4.0.2-1 (Built by MSYS2 project)
|
||||
ffStrbufSubstrAfterFirstS(version, "version ");
|
||||
ffStrbufSubstrBeforeFirstC(version, ' ');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user