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