Skip to content

Commit 5a0cf6d

Browse files
maxslarssonMarek Fiala
authored and
Marek Fiala
committed
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 e9b2f6d commit 5a0cf6d

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
@@ -107,5 +107,4 @@ else
107107
eval (env _IDF.PY_COMPLETE=fish_source idf.py)
108108
end
109109

110-
111-
set -e __main
110+
functions -e __main

0 commit comments

Comments
 (0)