-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetEnvironmentalVariables.sh
33 lines (27 loc) · 1.2 KB
/
setEnvironmentalVariables.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
#!/usr/bin/env bash
# Test Colours
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
# Ensure that file is being sourced, as ./ won't set the Env Variables outside this script's context.
if [ "$0" = "./setEnvironmentalVariables.sh" ]
then
echo " ${red}[error] Usage of this file should be 'source setEnvironmentalVariables.sh'${reset}"
exit 1
fi
# Set ROADCC_USERNAME for local testing
echo " [info] Setting ROADCC_USERNAME"
export ROADCC_USERNAME='yourusername'
echo " ${green}[info] Set ROADCC_USERNAME to $ROADCC_USERNAME ${reset}"
# Set ROADCC_PASSWORD for local testing
echo " [info] Setting ROADCC_PASSWORD"
export ROADCC_PASSWORD='yourpassword'
echo " ${green}[info] Set ROADCC_PASSWORD to $ROADCC_PASSWORD ${reset}"
# Set ROADCC_LEAGUE_NAME for local testing
echo " [info] Setting ROADCC_LEAGUE_NAME"
export ROADCC_LEAGUE_NAME='your league name'
echo " ${green}[info] Set ROADCC_LEAGUE_NAME to $ROADCC_LEAGUE_NAME ${reset}"
# Set IS_FANTASY_CYCLING_TOOLS_ON_DOCKER for local testing
echo " [info] Setting IS_FANTASY_CYCLING_TOOLS_ON_DOCKER"
export IS_FANTASY_CYCLING_TOOLS_ON_DOCKER='false'
echo " ${green}[info] Set IS_FANTASY_CYCLING_TOOLS_ON_DOCKER to $IS_FANTASY_CYCLING_TOOLS_ON_DOCKER ${reset}"