Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make export.fish exit with SUCCESS exit code (IDFGH-9460) #10828

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions export.fish
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# This script should be sourced, not executed.

# `idf_tools.py export --deactivate` create statement, with keyword unset, but fish shell support only `set --erase variable`
function unset
set --erase $argv
end

function __main
set script_dir (dirname (realpath (status -f)))
if not set -q IDF_PATH
Expand Down Expand Up @@ -107,5 +102,4 @@ else
eval (env _IDF.PY_COMPLETE=fish_source idf.py)
end


set -e __main
functions -e __main