Extract the confirmation into its own file

This commit is contained in:
David Heinemeier Hansson
2025-10-31 14:33:53 +01:00
parent fc0983624e
commit dd3b64ef7f
2 changed files with 15 additions and 11 deletions

14
bin/omarchy-update-confirm Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e
gum style --border normal --border-foreground 6 --padding "1 2" \
"Ready to update Omarchy?" \
"" \
"• You cannot stop the update once you start!" \
"• Make sure you're connected to power or have a full battery"
if ! gum confirm --default=false "Continue with update?"; then
echo "Update cancelled"
exit 0
fi