Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rvion committed Dec 5, 2023
1 parent 40c6d60 commit fc05cc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions _windows_INSTALL.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ SET PNPM_BIN_PATH=%CD%\.cushy\pnpm.exe

:: Check if pnpm is already installed
IF EXIST "%PNPM_HOME%\pnpm.exe" (
FOR /F "tokens=*" %%i IN ('%PNPM_BIN_PATH% --version') DO SET INSTALLED_PNPM_VERSION=%%i
IF NOT "%INSTALLED_PNPM_VERSION%"=="%PNPM_VERSION%" (
FOR /F "tokens=*" %%i IN ('"%PNPM_BIN_PATH%" --version') DO (
SET INSTALLED_PNPM_VERSION=%%i
)
IF NOT "!INSTALLED_PNPM_VERSION!"=="%PNPM_VERSION%" (
ECHO Updating pnpm from version %INSTALLED_PNPM_VERSION% to %PNPM_VERSION%...
CALL :install_with_powershell
) ELSE (
Expand Down
6 changes: 4 additions & 2 deletions _windows_START.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ SET PNPM_BIN_PATH=%CD%\.cushy\pnpm.exe

:: Check if pnpm is already installed
IF EXIST "%PNPM_HOME%\pnpm.exe" (
FOR /F "tokens=*" %%i IN ('%PNPM_BIN_PATH% --version') DO SET INSTALLED_PNPM_VERSION=%%i
IF NOT "%INSTALLED_PNPM_VERSION%"=="%PNPM_VERSION%" (
FOR /F "tokens=*" %%i IN ('"%PNPM_BIN_PATH%" --version') DO (
SET INSTALLED_PNPM_VERSION=%%i
)
IF NOT "!INSTALLED_PNPM_VERSION!"=="%PNPM_VERSION%" (
ECHO Updating pnpm from version %INSTALLED_PNPM_VERSION% to %PNPM_VERSION%...
CALL :install_with_powershell
) ELSE (
Expand Down

0 comments on commit fc05cc5

Please sign in to comment.