Skip to content

Commit

Permalink
tools: CMD initializer rename echo. file (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik authored May 19, 2021
1 parent bb67ca4 commit 1409236
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Batch/idf_cmd_init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ if "%IDF_TOOLS_PATH%" == "" (
echo IDF_TOOLS_PATH not set. Setting to %~dp0
)

if exist "echo" (
echo "File 'echo' was detected in the current directory. The file can cause problems with 'echo.' in batch scripts."
echo "Renaming the file to 'echo.old'"
move "echo" "echo.old"
)

set PATH=%IDF_TOOLS_PATH%;%PATH%
set TEMP_IDF_PYTHON_PATH="%TEMP%\idf-python-path.txt"
idf-env config get --property python --idf-path %IDF_PATH%\>%TEMP_IDF_PYTHON_PATH%
Expand Down

0 comments on commit 1409236

Please sign in to comment.