Skip to content

Commit

Permalink
Resolve issue conda#8733
Browse files Browse the repository at this point in the history
  • Loading branch information
Bezier89 authored Jun 18, 2019
1 parent fa01047 commit 8fae39c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda/shell/condabin/_conda_activate.bat
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
@REM @FOR /F %%i IN ('%CONDA_EXES% shell.cmd.exe %*') DO @SET _TEMP_SCRIPT_PATH=%%i not return error
@REM This method will not work if %TMP% contains any spaces.
:tmpName
@SET UNIQUE=%TMP%\conda-%RANDOM%.tmp
@SET UNIQUE=%TMP%\conda-%RANDOM%-%RANDOM%.tmp
@IF EXIST "%UNIQUE%" goto :tmpName
@TYPE NUL 1>%UNIQUE%
@"%CONDA_EXE%" %_CE_M% %_CE_CONDA% shell.cmd.exe %* 1>%UNIQUE%
@IF %ErrorLevel% NEQ 0 @EXIT /B %ErrorLevel%
@FOR /F %%i IN (%UNIQUE%) DO @SET _TEMP_SCRIPT_PATH=%%i
Expand Down

0 comments on commit 8fae39c

Please sign in to comment.