Skip to content

Commit 195b4a6

Browse files
committed
update: show current versions in dialog
1 parent ea5888f commit 195b4a6

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

scripts/menu.update.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22

33
source /home/joinmarket/_functions.sh
44

5+
currentJBversion=$(cd $HOME/joininbox; git describe --tags)
6+
currentJMversion=$(cd $HOME/joinmarket-clientserver; git describe --tags)
7+
58
# BASIC MENU INFO
6-
HEIGHT=8
7-
WIDTH=55
9+
HEIGHT=11
10+
WIDTH=56
811
CHOICE_HEIGHT=2
912
TITLE="Update options"
10-
MENU=""
13+
MENU="
14+
Current JoininBox version: $currentJBversion
15+
Current JoinMarket version: $currentJMversion"
1116
OPTIONS=()
1217
BACKTITLE="JoininBox GUI"
1318

1419
# Basic Options
1520
OPTIONS+=(\
1621
JOININBOX "Update the JoininBox scripts and menu" \
17-
JOINMARKET "Update JoinMarket to $(grep JMVersion= < ~/_functions.sh | cut -d '"' -f 2)" \
22+
JOINMARKET "Update/reinstall JoinMarket to $(grep JMVersion= < ~/_functions.sh | cut -d '"' -f 2)" \
1823
)
1924

2025
CHOICE=$(dialog --clear \

0 commit comments

Comments
 (0)