2023-05-25 20:07:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Set the environment name
|
|
|
|
environment_name="env"
|
|
|
|
|
|
|
|
# Activate the virtual environment
|
2023-06-05 05:32:40 +00:00
|
|
|
source "$environment_name/bin/activate"
|
2023-05-25 20:07:26 +00:00
|
|
|
|
|
|
|
# Change to the installations subfolder
|
|
|
|
|
|
|
|
# Run the Python script
|
|
|
|
python installations/download_all_personalities.py
|
|
|
|
|
|
|
|
# Deactivate the virtual environment
|
|
|
|
echo "deactivating"
|
|
|
|
deactivate
|
2023-05-30 10:00:51 +00:00
|
|
|
|
|
|
|
# Remove tmp folder
|
|
|
|
folder="tmp"
|
|
|
|
|
|
|
|
if [ -d "$folder" ]; then
|
|
|
|
echo "Folder exists. Deleting..."
|
|
|
|
rm -r "$folder"
|
|
|
|
echo "Folder deleted."
|
|
|
|
else
|
|
|
|
echo "Folder does not exist."
|
|
|
|
fi
|