From 3ed0f1665facb705e32b9f00c81899d09278165b Mon Sep 17 00:00:00 2001 From: Max Larsson Date: Wed, 22 Feb 2023 18:47:12 -0500 Subject: [PATCH] Make export.fish exit with SUCCESS exit code The export.fish script exits with an exit code of 4. Thus, any shell checks that make sure the source command exits successfully always failed. This was due to the last line trying to erase the __main function. In fish, you can't erase a function using the `set` command, you can only erase variables. By removing that line the script now exits with an exit code of 0 instead of 4. Erase __main function at the end of export.fish Closes https://github.com/espressif/esp-idf/pull/10828 --- export.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/export.fish b/export.fish index 85fd69b73c..8e9c9cd2ca 100644 --- a/export.fish +++ b/export.fish @@ -74,5 +74,4 @@ else eval (env _IDF.PY_COMPLETE=fish_source idf.py) end - -set -e __main +functions -e __main