-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.sh
30 lines (23 loc) · 828 Bytes
/
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
#!/bin/bash
echo
echo "Please enter the following details"
echo -n "Kicktipp Email: "
read KICKTIPP_EMAIL
echo -n "Kicktipp Password: "
read KICKTIPP_PASSWORD
echo -n "Kicktipp Name of Competition: "
read KICKTIPP_NAME_OF_COMPETITION
echo -n "How many hours before the game should the games be tipped? (default 2): "
read KICKTIPP_HOURS_UNTIL_GAME
echo -n "Zapier Url (press enter to skip): "
read ZAPIER_URL
echo "export KICKTIPP_EMAIL=$KICKTIPP_EMAIL" >> .env
echo "export KICKTIPP_PASSWORD=$KICKTIPP_PASSWORD" >> .env
echo "export KICKTIPP_NAME_OF_COMPETITION=$KICKTIPP_NAME_OF_COMPETITION" >> .env
echo "export KICKTIPP_HOURS_UNTIL_GAME=$KICKTIPP_HOURS_UNTIL_GAME " >> .env
if [ -z "$ZAPIER_URL" ]; then
echo "Zapier Url not set"
else
echo "export ZAPIER_URL=$ZAPIER_URL" >> .env
echo "Zapier Url set"
fi