-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·36 lines (27 loc) · 792 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·36 lines (27 loc) · 792 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
#!/bin/bash
PATH_MODELS=models
set -e
# function curl_model() {
# if [ -f "$PATH_MODELS/$2" ]; then
# echo "!! $PATH_MODELS/$2 already exists, skipping..."
# return
# fi
# echo "* Downloading $2..."
# curl $1 -o $PATH_MODELS/$2 -L
# }
# check for venv, set it up if not present
# if [ ! -d "./venv" ]; then
# echo "Creating virtual environment..."
# python3 -m venv ./venv
# source ./venv/bin/activate
# pip install -r requirements.txt
# fi
# check for existing .env
if [ ! -f ".env" ]; then
echo "Copying over sample .env file... fill this out with your Slack API keys!"
cp scripts/example.env .env
fi
if [ ! -f "config.yml" ]; then
echo "Copying over default config.yml..."
cp scripts/config-example.yml config.yml
fi