-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
51 lines (48 loc) · 1.57 KB
/
setup.sh
File metadata and controls
51 lines (48 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
devnet_install="https://raw.githubusercontent.com/f5nodes/sui/main/devnet.sh"
devnet_update="https://raw.githubusercontent.com/f5nodes/sui/main/devnet_update.sh"
testnet_install="https://raw.githubusercontent.com/f5nodes/sui/main/testnet.sh"
testnet_update="https://raw.githubusercontent.com/f5nodes/sui/main/testnet_update.sh"
if [ "$language" = "uk" ]; then
PS3='Виберіть опцію: '
options=("Встановити devnet" "Оновити devnet" "Встановити testnet" "Оновити testnet" "Вийти з меню")
selected="Ви вибрали опцію"
else
PS3='Enter your option: '
options=("Install the devnet" "Update the devnet" "Install the testnet" "Update the testnet" "Quit")
selected="You choose the option"
fi
select opt in "${options[@]}"
do
case $opt in
"${options[0]}")
echo "$selected $opt"
sleep 1
. <(wget -qO- $devnet_install)
break
;;
"${options[1]}")
echo "$selected $opt"
sleep 1
. <(wget -qO- $devnet_update)
break
;;
"${options[2]}")
echo "$selected $opt"
sleep 1
. <(wget -qO- $testnet_install)
break
;;
"${options[3]}")
echo "$selected $opt"
sleep 1
. <(wget -qO- $testnet_update)
break
;;
"${options[4]}")
echo "$selected $opt"
break
;;
*) echo "unknown option $REPLY";;
esac
done