thoughtbot / laptop

A shell script to set up a macOS laptop for web and mobile development.
https://thoughtbot.com
MIT License
8.51k stars 1.91k forks source link

Return error code for failure sourcing asdf.sh #620

Closed cpytel closed 2 years ago

cpytel commented 2 years ago

source (or .) is a built in command and as a result it halts script execution, and the error code from the command is not returned. This resulted in the exit code of the script in this case being 0 rather than the error code of the source command, which is 127 (command not found).