From d3d28ea0c5c526342a0dbb18bf11dcd98bd520c6 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Mon, 30 Sep 2019 10:36:08 +0300 Subject: [PATCH] Update CliService.cs --- framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs index 1264580e17..f02f03d502 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs @@ -172,7 +172,7 @@ namespace Volo.Abp.Cli private static bool IsGlobalTool(string toolPath) { var globalPaths = new[] { @"%USERPROFILE%\.dotnet\tools\", "%HOME%/.dotnet/tools/", }; - return globalPaths.Select(path => Environment.ExpandEnvironmentVariables(path)).Contains(toolPath); + return globalPaths.Select(Environment.ExpandEnvironmentVariables).Contains(toolPath); } private void LogNewVersionInfo(UpdateChannel updateChannel, SemanticVersion latestVersion, string toolPath)