Escape vertical bar (`|`) in the echo message (#1160)
authorGanbarukamo41 <ganbarukamo@gmail.com>
Fri, 3 Jan 2020 01:18:32 +0000 (10:18 +0900)
committerBruce Forstall <brucefo@microsoft.com>
Fri, 3 Jan 2020 01:18:32 +0000 (17:18 -0800)
* When `--runtime-path` is not specified, this unescaped character causes the batch file to attempt executing `--runtime-path` (which obviously is not possible) giving out very confusing failures.

eng/testing/RunnerTemplate.Windows.txt

index 6d956f5..fe28e91 100644 (file)
@@ -42,7 +42,7 @@ set EXECUTION_DIR=%~dp0
 :argparser_end
 
 if not defined RUNTIME_PATH (
-  echo error: -r|--runtime-path argument is required.
+  echo error: -r^|--runtime-path argument is required.
   call :usage
   exit /b -1
 )