mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 20:53:11 +00:00
tools: bugfix export.sh change IDF_PATH only if file is esp-idf
Set the self_path where the export.sh script is located, not the sourcing directory.
This commit is contained in:
@@ -1199,9 +1199,10 @@ def deactivate_statement(args): # type: (list[str]) -> None
|
||||
if 'sha' in idf_env_json['idfInstalled']:
|
||||
try:
|
||||
idf_env_json['idfInstalled'].pop('sha')
|
||||
if idf_env_json['idfPreviousId'] == 'sha':
|
||||
idf_env_json['idfPreviousId'] = ''
|
||||
if idf_env_json['idfSelectedId'] == 'sha':
|
||||
idf_env_json['idfSelectedId'] = active_repo_id()
|
||||
idf_env_json['idfPreviousId'] = ''
|
||||
return
|
||||
finally:
|
||||
save_idf_env(idf_env_json)
|
||||
|
||||
Reference in New Issue
Block a user