Fix windows shim

This commit is contained in:
Sander Declerck 2025-12-02 15:00:51 +01:00
parent 998d0c4faf
commit b632e0acda
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ set "SHIM_DIR=%USERPROFILE%\.safe-chain\shims"
call set "CLEAN_PATH=%%PATH:%SHIM_DIR%;=%%"
REM Check if aikido command is available with clean PATH
set "PATH=%CLEAN_PATH%" & where {{AIKIDO_COMMAND}} >nul 2>&1
set "PATH=%CLEAN_PATH%" & where safe-chain >nul 2>&1
if %errorlevel%==0 (
REM Call aikido command with clean PATH
set "PATH=%CLEAN_PATH%" & safe-chain {{PACKAGE_MANAGER}} %*