-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
57 lines (53 loc) · 1.05 KB
/
run.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 each network
run_script() {
network=$1
echo "You have selected the $network network."
# Add specific commands for each network
case "$network" in
"Arbitrum")
# Run Arbitrum here
;;
"Avalanche")
# Run Avalanche here
;;
"Celo")
# Run Celo here
;;
"Ethereum")
# Run Ethereum here
;;
"Fantom")
# Run Fantom here
;;
"Gnosis")
# Run Gnosis here
;;
"Optimism")
# Run Optimism here
;;
"Polygon")
# Run Polygon here
;;
*)
echo "Unknown network selected."
;;
esac
}
echo "Please select a network:"
select network in "Arbitrum" "Avalanche" "Celo" "Ethereum" "Fantom" "Gnosis" "Optimism" "Polygon" "Quit"
do
case $network in
"Arbitrum"|"Avalanche"|"Celo"|"Ethereum"|"Fantom"|"Gnosis"|"Optimism"|"Polygon")
run_script $network
break
;;
"Quit")
echo "Exiting."
break
;;
*)
echo "Invalid selection. Please try again."
;;
esac
done