Skip to content

Commit

Permalink
Tools/fsi.bat: rather only echo if error
Browse files Browse the repository at this point in the history
Otherwise we might get unwanted output for certain consumers
of this (e.g. find.fsx, which can act kinda like a
crossplatform F#-based grep/find).
  • Loading branch information
knocte committed Apr 12, 2024
1 parent e0c0b11 commit 21406a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Tools/fsi.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
SET "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
SET "INSTALL_MSG=Please install .NET v6, or higher; or Visual Studio."

ECHO checking for '%VSWHERE%'...
IF NOT EXIST "%VSWHERE%" (
echo:
echo Tool vswhere.exe not found.
echo %INSTALL_MSG%
exit /b 1
)

ECHO checking for fsi.exe...
FOR /f "tokens=* delims=" %%A in ('"%VSWHERE%" -latest -requires Microsoft.VisualStudio.Component.FSharp -find **\fsi.exe') do set RUNNER=%%A

IF "%RUNNER%"=="" (
Expand Down

0 comments on commit 21406a1

Please sign in to comment.