Skip to content

fix: strengthen error handling in demo and validation scripts#9

Open
boffin-dmytro wants to merge 2 commits intomainfrom
fix/demo-script-error-handling
Open

fix: strengthen error handling in demo and validation scripts#9
boffin-dmytro wants to merge 2 commits intomainfrom
fix/demo-script-error-handling

Conversation

@boffin-dmytro
Copy link
Copy Markdown
Owner

Summary

Strengthens error handling in 5 demo and validation scripts by upgrading from set -e to set -euo pipefail.

Changes

  • scripts/first-boot-demo.sh: Upgrade error handling
  • scripts/check-offline-models.sh: Upgrade error handling
  • scripts/dream-preflight.sh: Upgrade error handling
  • scripts/showcase.sh: Upgrade error handling
  • scripts/validate.sh: Upgrade error handling

Problem Solved

These scripts used set -e which only catches command failures, but not:

  • Undefined variable usage (-u flag)
  • Pipeline failures where intermediate commands fail (-o pipefail)

Benefits

  • Catches undefined variables: Prevents silent failures from typos like $UNDEFINEED_VAR
  • Catches pipeline failures: Ensures curl | jq fails if curl fails, not just if jq fails
  • Aligns with project standards: Matches error handling in installer phases and core scripts

Testing

All scripts validated with bash -n for syntax correctness.

@boffin-dmytro boffin-dmytro force-pushed the main branch 2 times, most recently from 5a4c90a to 28da306 Compare March 19, 2026 05:47
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