Skip to content

feat: add 10s countdown before running custom extension scripts#219

Open
AnAverageBeing wants to merge 1 commit into
BlueprintFramework:mainfrom
AnAverageBeing:feat/custom-script-confirm
Open

feat: add 10s countdown before running custom extension scripts#219
AnAverageBeing wants to merge 1 commit into
BlueprintFramework:mainfrom
AnAverageBeing:feat/custom-script-confirm

Conversation

@AnAverageBeing
Copy link
Copy Markdown

@AnAverageBeing AnAverageBeing commented May 27, 2026

when an extension ships a custom install, update or removal script, blueprint prints a caution warning and immediately runs it. theres no pause, so if you see the warning and want to check whats in the script before it runs, youre already too late.

this adds a 10 second countdown prompt before any of those scripts execute. you can hit enter to go immediately or ctrl+c to bail out clean. non-interactive environments (pipes, ci) skip the wait automatically, and theres a BLUEPRINT_SKIP_SCRIPT_CONFIRM env var if you want to disable it manually.

files changed

  • scripts/libraries/misc.sh - added blueprint_custom_script_confirm(), sourced globally via blueprint.sh
  • scripts/commands/extensions/install.sh - update path + install path
  • scripts/commands/extensions/remove.sh - removal path

@AnAverageBeing AnAverageBeing marked this pull request as draft May 27, 2026 15:04
extensions that ship a custom install, update or removal script now
show a 10 second countdown before the script runs. press enter to
continue immediately or ctrl+c to cancel. non-interactive sessions
skip the wait automatically.
@AnAverageBeing AnAverageBeing force-pushed the feat/custom-script-confirm branch from c3c7b19 to bcf3805 Compare May 27, 2026 15:38
@AnAverageBeing AnAverageBeing marked this pull request as ready for review May 27, 2026 15:41
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.

2 participants