Skip to content

Commit

Permalink
tools: export.{sh,fish}: add otatool.py to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Apr 2, 2020
1 parent 1c4c584 commit a1f5866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion export.fish
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ function idf_export_main
# "$IDF_PATH"/tools is already added by 'idf_tools.py export'
set IDF_ADD_PATHS_EXTRAS "$IDF_PATH"/components/esptool_py/esptool
set IDF_ADD_PATHS_EXTRAS "$IDF_ADD_PATHS_EXTRAS":"$IDF_PATH"/components/espcoredump
set IDF_ADD_PATHS_EXTRAS "$IDF_ADD_PATHS_EXTRAS":"$IDF_PATH"/components/partition_table/
set IDF_ADD_PATHS_EXTRAS "$IDF_ADD_PATHS_EXTRAS":"$IDF_PATH"/components/partition_table
set IDF_ADD_PATHS_EXTRAS "$IDF_ADD_PATHS_EXTRAS":"$IDF_PATH"/components/app_update
set -x PATH "$IDF_ADD_PATHS_EXTRAS":"$PATH"

set added_path_variables
Expand Down
3 changes: 2 additions & 1 deletion export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ function idf_export_main() {
# ${IDF_PATH}/tools is already added by 'idf_tools.py export'
IDF_ADD_PATHS_EXTRAS="${IDF_PATH}/components/esptool_py/esptool"
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/espcoredump"
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/partition_table/"
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/partition_table"
IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/app_update"
export PATH="${IDF_ADD_PATHS_EXTRAS}:${PATH}"

if [[ -n "$BASH" ]]
Expand Down

0 comments on commit a1f5866

Please sign in to comment.