Files
minecraft_simple_mod_sync/updater/update.sh

16 lines
235 B
Bash
Executable File

#!/bin/bash
if [ -d ".git" ]; then
git pull
fi
if [ ! -d ".venv" ]; then
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r ./requirements.txt
else
source .venv/bin/activate
fi
python3 ./updater.py