From 5a0cf6d175c608a0e45303285a065da32427a676 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 905d3a4cd8..74b8c010a3 100644 --- a/export.fish +++ b/export.fish @@ -107,5 +107,4 @@ else eval (env _IDF.PY_COMPLETE=fish_source idf.py) end - -set -e __main +functions -e __main