From 43c03c4f971eda91486c0cd00e0cc8f3c823da84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= Date: Mon, 17 Jul 2023 17:46:19 +0200 Subject: [PATCH] Fix linux module names --- src/Alma.App/Command/Info/InfoCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Alma.App/Command/Info/InfoCommand.cs b/src/Alma.App/Command/Info/InfoCommand.cs index 2ce9c12..d0948a8 100644 --- a/src/Alma.App/Command/Info/InfoCommand.cs +++ b/src/Alma.App/Command/Info/InfoCommand.cs @@ -137,7 +137,7 @@ public class InfoCommand : RepositoryModuleCommandBase 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)); }