mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'bugfix/export_fish_exec_check' into 'master'
export.fish: Remove source check (Github PR) See merge request espressif/esp-idf!10474
This commit is contained in:
11
export.fish
11
export.fish
@ -1,15 +1,6 @@
|
||||
# This script should be sourced, not executed.
|
||||
|
||||
function idf_export_main
|
||||
# The file doesn't have executable permissions, so this shouldn't really happen.
|
||||
# Doing this in case someone tries to chmod +x it and execute...
|
||||
set cmd (status current-command)
|
||||
if test $cmd != source -a $cmd != .
|
||||
echo "his script should be sourced, not executed:"
|
||||
echo . (realpath (status --current-filename)/..)
|
||||
return 1
|
||||
end
|
||||
|
||||
if not set -q IDF_PATH
|
||||
echo "IDF_PATH must be set before sourcing this script"
|
||||
return 1
|
||||
@ -72,4 +63,4 @@ end
|
||||
|
||||
idf_export_main
|
||||
|
||||
set -e idf_export_main
|
||||
set -e idf_export_main
|
||||
|
Reference in New Issue
Block a user