-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
57 lines (53 loc) · 1.21 KB
/
update.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Function to be called for updating each network
update_network() {
network=$1
echo "You have selected the $network network for updating."
# Add specific commands for updating each network
case "$network" in
"Arbitrum")
# Update script for Arbitrum here
;;
"Avalanche")
# Update script for Avalanche here
;;
"Celo")
# Update script for Celo here
;;
"Ethereum")
# Update script for Ethereum here
;;
"Fantom")
# Update script for Fantom here
;;
"Gnosis")
# Update script for Gnosis here
;;
"Optimism")
# Update script for Optimism here
;;
"Polygon")
# Update script for Polygon here
;;
*)
echo "Unknown network selected."
;;
esac
}
echo "Please select a network to update:"
select network in "Arbitrum" "Avalanche" "Celo" "Ethereum" "Fantom" "Gnosis" "Optimism" "Polygon" "Quit"
do
case $network in
"Arbitrum"|"Avalanche"|"Celo"|"Ethereum"|"Fantom"|"Gnosis"|"Optimism"|"Polygon")
update_network $network
break
;;
"Quit")
echo "Exiting."
break
;;
*)
echo "Invalid selection. Please try again."
;;
esac
done