Skip to content

Commit

Permalink
tools: install.bat: bail out if idf_tools.py call fails
Browse files Browse the repository at this point in the history
Makes installation errors easier to spot.
  • Loading branch information
igrr committed Jul 23, 2019
1 parent 9c5284e commit f38c1c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ set IDF_PATH=%IDF_PATH:~0,-1%

echo Installing ESP-IDF tools
python.exe %IDF_PATH%\tools\idf_tools.py install
if %errorlevel% neq 0 goto :end

echo Setting up Python environment
python.exe %IDF_PATH%\tools\idf_tools.py install-python-env
if %errorlevel% neq 0 goto :end

echo All done! You can now run:
echo export.bat
:: Clean up

:end

0 comments on commit f38c1c1

Please sign in to comment.