-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
38 lines (35 loc) · 1.06 KB
/
setup.sh
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
#!/bin/bash
light_install="https://raw.githubusercontent.com/f5nodes/celestia/main/light_install.sh"
full_install="https://raw.githubusercontent.com/f5nodes/celestia/main/full_install.sh"
bridge_install="https://raw.githubusercontent.com/f5nodes/celestia/main/bridge_install.sh"
PS3='Enter your option: '
options=("Install the light node" "Install the full node" "Install the bridge node" "Quit")
selected="You choose the option"
select opt in "${options[@]}"
do
case $opt in
"${options[0]}")
echo "$selected $opt"
sleep 1
. <(wget -qO- $light_install)
break
;;
"${options[1]}")
echo "$selected $opt"
sleep 1
. <(wget -qO- $full_install)
break
;;
"${options[2]}")
echo "$selected $opt"
sleep 1
. <(wget -qO- $bridge_install)
break
;;
"${options[3]}")
echo "$selected $opt"
break
;;
*) echo "unknown option $REPLY";;
esac
done