mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-13 12:33:14 +02:00
as suggested in: https://github.com/openoms/joininbox/issues/28 the main menu "Exit" button now drops to the command line the separate "Exit to the Command Line" option is removed Submenus use the label "Back" inplace of "Cancel"
49 lines
1.2 KiB
Bash
Executable file
49 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
source /home/joinmarket/_functions.sh
|
|
|
|
# BASIC MENU INFO
|
|
HEIGHT=12
|
|
WIDTH=56
|
|
CHOICE_HEIGHT=3
|
|
TITLE="Update options"
|
|
MENU="
|
|
Current JoininBox version: $currentJBcommit
|
|
Current JoinMarket version: $currentJMversion"
|
|
OPTIONS=()
|
|
BACKTITLE="JoininBox GUI"
|
|
|
|
# Basic Options
|
|
OPTIONS+=(
|
|
JOININBOX "Update the JoininBox scripts and menu"
|
|
JOINMARKET "Update/reinstall JoinMarket to $(grep JMVersion= < ~/_functions.sh | cut -d '"' -f 2)"
|
|
ADVANCED "Advanced update options"
|
|
)
|
|
CHOICE=$(dialog --clear \
|
|
--backtitle "$BACKTITLE" \
|
|
--title "$TITLE" \
|
|
--ok-label "Select" \
|
|
--cancel-label "Back" \
|
|
--menu "$MENU" \
|
|
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
|
"${OPTIONS[@]}" \
|
|
2>&1 >/dev/tty)
|
|
|
|
case $CHOICE in
|
|
JOININBOX)
|
|
updateJoininBox
|
|
errorOnInstall $?
|
|
echo
|
|
echo "Press ENTER to return to the menu"
|
|
read key
|
|
;;
|
|
JOINMARKET)
|
|
/home/joinmarket/install.joinmarket.sh update
|
|
echo
|
|
echo "Press ENTER to return to the menu"
|
|
read key
|
|
;;
|
|
ADVANCED)
|
|
/home/joinmarket/menu.update.advanced.sh
|
|
;;
|
|
esac
|