Skip to content

Commit

Permalink
Fix #571.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Mar 7, 2024
1 parent 8e52b47 commit 3b37533
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions clink/app/src/loader/clink.bat
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ if /i "%~1"=="--quiet" (
)

rem -- If the .bat is run without any arguments, then start a cmd.exe instance.
if "%~1"=="" (
setlocal enableextensions
set WT_PROFILE_ID=
set WT_SESSION=
start "Clink" cmd.exe /s /k ""%~dpnx0" inject %clink_profile_arg%%clink_quiet_arg%"
endlocal
if _%1==_ (
call :launch
goto :end
)

Expand All @@ -56,4 +52,13 @@ if /i "%processor_architecture%"=="x86" (
)
)

goto :end

:launch
setlocal enableextensions
set WT_PROFILE_ID=
set WT_SESSION=
start "Clink" cmd.exe /s /k ""%~dpnx0" inject %clink_profile_arg%%clink_quiet_arg%"
endlocal

:end

0 comments on commit 3b37533

Please sign in to comment.