Fix linux module names

This commit is contained in:
2023-07-17 17:46:19 +02:00
parent 5f495c8390
commit 43c03c4f97

View File

@@ -137,7 +137,7 @@ public class InfoCommand : RepositoryModuleCommandBase
if (moduleConfig is not null) if (moduleConfig is not null)
{ {
var moduleName = currentDirectory.FullName[(repoRoot.FullName.Length + 1)..].Replace(Path.DirectorySeparatorChar, '/'); var moduleName = currentDirectory.FullName[(repoRoot.FullName.TrimEnd(Path.DirectorySeparatorChar).Length + 1)..].Replace(Path.DirectorySeparatorChar, '/');
modulesFound = modulesFound.Append(new(moduleName, moduleConfig)); modulesFound = modulesFound.Append(new(moduleName, moduleConfig));
} }