-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
40 lines (37 loc) · 972 Bytes
/
entrypoint.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
restart() {
printf "League CLI crashed with exit code $?. \nAttempting to restart"
sleep 1
printf "."
sleep 1
printf "."
sleep 2
printf ".\n"
}
#number of new reads every script execution
let champ
# let ok=true
# Verbose app init
init_options() {
while true
do
echo "Choose an option from the list below:\n 1) Print Champion List \n 2) Enter Champion Number, Get the counters\n *) Anything else to exit interactive mode."
read choice
case $choice in
1)
node championgetter.js
;;
2)
echo "Enter Champion number or name (no spaces) to get the counters:"
read champ
node countergetter.js $champ
;;
*)
echo "Exiting League CLI. Bye!"
break
;;
esac
done
}
# Do what u gotta do
echo "Welcome to League CLI."
init_options