feat(tools): Inform user about IDF_PATH set/change in install/export scripts

This commit is contained in:
Marek Fiala
2024-11-07 10:46:50 +01:00
committed by BOT
parent ab3d179f53
commit cad15b50c4
12 changed files with 37 additions and 19 deletions
+4
View File
@@ -3,6 +3,8 @@ if defined MSYSTEM (
echo This .bat file is for Windows CMD.EXE shell only.
goto :__end
)
:: Set local ensures that variables like IDF_PATH are not changed/propagated out of the script
setlocal
set SCRIPT_EXIT_CODE=0
@@ -30,6 +32,8 @@ if /I "%1" == "/?" goto :__help
if /I "%1" == "-h" goto :__help
if /I "%1" == "--help" goto :__help
echo INFO: Using IDF_PATH '%IDF_PATH%' for installation.
for /f "delims=" %%i in ('python.exe "%IDF_PATH%\tools\install_util.py" extract targets "%*"') do set TARGETS=%%i
echo Installing ESP-IDF tools