-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
42 lines (31 loc) · 826 Bytes
/
Copy pathsetup.sh
File metadata and controls
42 lines (31 loc) · 826 Bytes
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
#!/bin/bash
ERR='\033[0;31m'
OK='\033[0;32m'
WARN='\033[0;33m'
OK_BLUE='\033[0;36m'
NC='\033[0m'
printf "Running setup...\n"
if [[ ! -d src/out ]]; then
printf "Creating src/out...\n"
mkdir src/out
printf "Successfully created src/out\n"
else
printf "${WARN}src/out already exists${NC}\n"
fi
if [[ ! -d src/data ]]; then
printf "Creating src/data...\n"
mkdir src/data
printf "Successfully created src/data\n"
else
printf "${WARN}src/data already exists${NC}\n"
fi
report_lab=$(python3 -m pip --disable-pip-version-check freeze | grep reportlab)
if [[ -z "$report_lab" ]]; then
printf "Installing required python libraries\n"
python3 -m pip --disable-pip-version-check install -r requirements.txt
else
printf "Libraries already installed\n"
fi
echo ${report_lab}
printf "${OK}Setup complete\n"
exit 0