summaryrefslogtreecommitdiff
path: root/scripts/populate.sh
blob: 0f1ac0cb4f32ae4318e7b57d1cdc4c06bd5eb94b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
echo activate virtual environment? \(source ~/.venv/bin/activate\) [y/n]
read answer

if [[ $answer == 'y' ]] then
    source ~/.config/venv/bin/activate
fi

mkdir -p lyrics_cache
cd lyrics_cache

python3 ../scripts/populate/main.py

cd ..
mv lyrics_cache/covers ./
rm -rf lyrics_cache

if [[ $answer == 'y' ]] then
    deactivate
fi