This causes bash to use the returned status the the status of the most recently executed command as the exit code (which is that case is the status of the preceeding echo command).
Instead we should make sure that we explicitly call exit with the appropriate error status.
It seems that the OS sniffing routing of a lot of recipes calls the
exit
built-in without any argument. https://github.com/hdl/conda-eda/search?q=%22Unknown+OS%22This causes bash to use the
returned status the the status of the most recently executed command
as the exit code (which is that case is the status of the preceedingecho
command).Instead we should make sure that we explicitly call
exit
with the appropriate error status.