Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Exit on error - #46

Merged
dhh merged 1 commit into
omacom:masterfrom
coffeejunk:exit-on-error
Jun 10, 2024
Merged

Exit on error#46
dhh merged 1 commit into
omacom:masterfrom
coffeejunk:exit-on-error

Conversation

@coffeejunk

Copy link
Copy Markdown
Contributor

If any of the (sub)commands in install.sh fail, the install script will continue to run and effectively hide the fact that something went wrong. Setting set -e will make the bash script exit upon an error.

Context: I was just testing #29 in an arm64 VM, and the installation of mise failed silently (because the current version does not have a code path for arm64); however, it appeared as if the installation had worked correctly and I got logged out at the end of it.
Then, when I tried to log in again, the system would simply hang. Upon further inspection, I realized it was hanging on this prompt:

https://github.com/basecamp/omakub/blob/9c603cd1f72be4c8c1e4b02f2f12ac39359e81a4/defaults/bash/init#L4

Screenshot 2024-06-08 at 11 08 22 AM

@ghost

ghost commented Jun 8, 2024

Copy link
Copy Markdown

I think this is a great catch and I think a great implementation and use of the command, btw the issue in #29 should be fixed

@josephchigiz

Copy link
Copy Markdown

Yes, this makes for a very important addition.

@dhh
dhh merged commit de7e5b4 into omacom:master Jun 10, 2024
burno-lima pushed a commit to burno-lima/omakdot that referenced this pull request May 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants