check for clink existence

This commit is contained in:
David Refoua 2022-10-18 16:22:05 +03:30
parent 5cdb98abb7
commit a0f234b9d0

7
vendor/init.bat vendored
View File

@ -147,7 +147,12 @@ if "%PROCESSOR_ARCHITECTURE%"=="x86" (
if "%CMDER_CLINK%" == "1" (
%print_verbose% "Injecting Clink!"
:: Run clink
:: Check if Clink is not present
if not exist "%CMDER_ROOT%\vendor\clink\clink_%clink_architecture%.exe" (
%print_error% "Clink executable is not present in 'vendor\clink\clink_%clink_architecture%.exe'"
)
:: Run Clink
if defined CMDER_USER_CONFIG (
if not exist "%CMDER_USER_CONFIG%\settings" if not exist "%CMDER_USER_CONFIG%\clink_settings" (
echo Generating clink initial settings in "%CMDER_USER_CONFIG%\clink_settings"