Skip to content

Commit

Permalink
#894: Fix remaining bug in ide.bat (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfeilex authored Jan 21, 2025
1 parent afc09e7 commit 8484189
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/src/main/package/bin/ide.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ set "GIT_BIN=%GIT_HOME%\usr\bin"
set "GIT_CORE=%GIT_HOME%\mingw64\libexec\git-core"

if exist "%GIT_BIN%" (
echo "%PATH%" | find /i "%GIT_BIN%">nul || set "PATH=%PATH%;%GIT_BIN%"
echo "%PATH%" | find /i "%GIT_BIN%">nul || set "PATH=%PATH%;%GIT_BIN%"
)

if exist "%GIT_CORE%" (
echo "%PATH%" | find /i "%GIT_CORE%">nul || set "PATH=%PATH%;%GIT_CORE%"
echo "%PATH%" | find /i "%GIT_CORE%">nul || set "PATH=%PATH%;%GIT_CORE%"
)

if not "%1%" == "" (
ideasy %IDE_OPTIONS% %*
if not %ERRORLEVEL% == 0 (
echo %_fBRed%Error: IDEasy failed with exit code %ERRORLEVEL% %_RESET%
exit /b %ERRORLEVEL%
)
)

REM https://stackoverflow.com/questions/61888625/what-is-f-in-the-for-loop-command
Expand Down

0 comments on commit 8484189

Please sign in to comment.