mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'contrib/github_pr_9637_v5.0' into 'release/v5.0'
export.fish: set IDF_PATH without changing current working directory (GitHub PR) (v5.0) See merge request espressif/esp-idf!19886
This commit is contained in:
commit
99953d4069
@ -6,15 +6,12 @@ function unset
|
||||
end
|
||||
|
||||
function __main
|
||||
set script_dir (dirname (realpath (status -f)))
|
||||
if not set -q IDF_PATH
|
||||
set -gx IDF_PATH (cd (dirname (status -f)); and pwd)
|
||||
set -gx IDF_PATH $script_dir
|
||||
echo "Setting IDF_PATH to '$IDF_PATH'"
|
||||
end
|
||||
|
||||
set script_dir (cd (dirname (status -f)); and pwd)
|
||||
if test "$script_dir" = "."
|
||||
set script_dir $pwd
|
||||
end
|
||||
if test "$IDF_PATH" != "$script_dir"
|
||||
# Change IDF_PATH is important when there are 2 ESP-IDF versions in different directories.
|
||||
# Sourcing this script without change, would cause sourcing wrong export script.
|
||||
|
Loading…
x
Reference in New Issue
Block a user