Skip to content

Fix sourced-script exit bugs and add bootstrap completion message#16

Merged
mapitman merged 1 commit intomainfrom
fix/sourced-script-exit-and-bootstrap-completion
Mar 19, 2026
Merged

Fix sourced-script exit bugs and add bootstrap completion message#16
mapitman merged 1 commit intomainfrom
fix/sourced-script-exit-and-bootstrap-completion

Conversation

@mapitman
Copy link
Owner

Problem

Two issues reported when running the Debian bootstrap:

  1. Bootstrap appeared to hang/end after GitHub login — the script ended silently with no output after gh auth login completed (only two silent usermod commands followed).

  2. MakeMKV selected but not installed on first run — tar extraction failures (especially the large ffmpeg-snapshot.tar.bz2) were silent, causing subsequent pushd calls to fail and bail out with no explanation.

There was also a latent bug in both debian/bootstrap and install-jetbrains-tools where exit 1 was used in scripts that are always run via source <(curl ...). Using exit in a sourced script kills the user's entire shell session instead of just returning from the script.

Changes

  • generic/install-jetbrains-tools: Replace exit 1 with return 1
  • debian/install-makemkv: Use command -v instead of type to suppress spurious output; add descriptive error messages to all return 1 failure paths so the user knows what went wrong

- Replace exit 1 with return 1 in debian/bootstrap and
  install-jetbrains-tools so failures don't kill the user's shell
  when scripts are run via 'source <(curl ...)'
- Add 'Bootstrap complete!' message at end of debian/bootstrap so
  the user knows when the run has finished (previously the script
  ended silently after github-auth-login)
- Fix install-makemkv to use 'command -v' instead of 'type' to
  suppress spurious output when checking for makemkv
- Add descriptive error messages to all return 1 paths in
  install-makemkv so failures explain what went wrong

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mapitman mapitman merged commit 4b4794b into main Mar 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant