From a0f234b9d0d25a59cf976d5d84c64dc4d18291ec Mon Sep 17 00:00:00 2001 From: David Refoua Date: Tue, 18 Oct 2022 16:22:05 +0330 Subject: [PATCH] check for clink existence --- vendor/init.bat | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vendor/init.bat b/vendor/init.bat index 15119c2..813950a 100644 --- a/vendor/init.bat +++ b/vendor/init.bat @@ -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"