diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-10-02 23:21:43 +0200 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-10-02 23:21:43 +0200 |
commit | 7df09f8b146ae7fb091787770fe5681381164f0e (patch) | |
tree | 0310d8dad1d0c6198d68d13b22030db3c5e8b28f /scripts/populate.sh | |
parent | 0972fa6eab8c9111311f082ba8abfdc6b4a40945 (diff) |
fix database setup
Diffstat (limited to 'scripts/populate.sh')
-rw-r--r-- | scripts/populate.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/populate.sh b/scripts/populate.sh index d8ccf8d..0f1ac0c 100644 --- a/scripts/populate.sh +++ b/scripts/populate.sh @@ -3,11 +3,19 @@ echo activate virtual environment? \(source ~/.venv/bin/activate\) [y/n] read answer if [[ $answer == 'y' ]] then - source ~/.venv/bin/activate + source ~/.config/venv/bin/activate fi -python3 scripts/populate/main.py +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 + |