Edited Jen Chitty's commit to keep ESP_IDF consistency

pull/7751/head
Marek Fiala 2021-10-11 14:11:09 +02:00 zatwierdzone przez bot
rodzic 6c564bd690
commit d8a8eceef4
1 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -142,6 +142,8 @@ __cleanup() {
unset IDF_ADD_PATHS_EXTRAS
unset idf_exports
unset ESP_PYTHON
unset SOURCE_ZSH
unset SOURCE_BASH
unset __realpath
unset __main
@ -174,12 +176,7 @@ __enable_autocomplete() {
then
eval "$(env LANG=en _IDF.PY_COMPLETE=$SOURCE_BASH idf.py)" || echo "WARNING: Failed to load shell autocompletion for bash version: $BASH_VERSION!"
fi
unset SOURCE_ZSH
unset SOURCE_BASH
}
__main
__enable_autocomplete
__main && __enable_autocomplete
__cleanup $?