From 1cacdf6bfeaa4fef535e1e2d3f70d68734d87974 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Thu, 17 Apr 2025 11:36:49 -0700 Subject: [PATCH] Ensure the trailing slash is removed from the right variable --- src/native/corehost/build.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/corehost/build.cmd b/src/native/corehost/build.cmd index 666226ee29a965..c5efeef6e75b8c 100644 --- a/src/native/corehost/build.cmd +++ b/src/native/corehost/build.cmd @@ -5,7 +5,7 @@ setlocal :: Initialize the args that will be passed to cmake set "__sourceDir=%~dp0" :: remove trailing slash -if %__sourceDir:~-1%==\ set "__ProjectDir=%__sourceDir:~0,-1%" +if %__sourceDir:~-1%==\ set "__sourceDir=%__sourceDir:~0,-1%" set "__RepoRootDir=%__sourceDir%\..\..\.." :: normalize