Skip to content

Commit 3ed0f16

Browse files
maxslarssonMarek Fiala
authored andcommitted
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 #10828
1 parent 7cfc1a7 commit 3ed0f16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

export.fish

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,4 @@ else
7474
eval (env _IDF.PY_COMPLETE=fish_source idf.py)
7575
end
7676

77-
78-
set -e __main
77+
functions -e __main

0 commit comments

Comments
 (0)