Skip to content

Commit

Permalink
[tui] Implement #135 for update
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Jan 18, 2025
1 parent 6373f58 commit e6661ba
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tui/locales/en-us/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/env bash

CONTENT="
An existing instance of Open Voice OS/HiveMind has been detected.
Upgrading your existing instance of Open Voice OS or HiveMind to the latest version ensures that you stay ahead with the most advanced features, critical security updates, bug fixes, and performance optimizations.
This not only enhances the overall functionality and user experience but also ensures compatibility with the latest integrations and tools, keeping your system reliable, secure, and future-proof.
Do you want to update Open Voice OS to the latest version?
"
TITLE="Open Voice OS Installation - Update"

export CONTENT TITLE
14 changes: 14 additions & 0 deletions tui/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/env bash

# shellcheck source=locales/en-us/misc.sh
source "tui/locales/$LOCALE/misc.sh"

# shellcheck source=locales/en-us/update.sh
source "tui/locales/$LOCALE/update.sh"

whiptail --yesno --no-button "$NO_BUTTON" --yes-button "$YES_BUTTON" --title "$TITLE" "$CONTENT" "$TUI_WINDOW_HEIGHT" "$TUI_WINDOW_WIDTH"

exit_status=$?
if [ "$exit_status" -eq 1 ]; then
exit 0
fi

0 comments on commit e6661ba

Please sign in to comment.