1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash echo activate virtual environment? \(source ~/.venv/bin/activate\) [y/n] read answer if [[ $answer == 'y' ]] then source ~/.venv/bin/activate fi python3 scripts/populate/main.py if [[ $answer == 'y' ]] then deactivate fi