Files
CondOrderBot/run.sh
2026-03-08 01:27:27 +08:00

16 lines
369 B
Bash

sudo git fetch origin
sudo git reset --hard origin/main
cd output
sudo git fetch origin
sudo git reset --hard origin/main
cd ..
cd config
sudo git fetch origin
sudo git reset --hard origin/main
cd ..
sudo python3 -m pip install -r requirements.txt
sudo python3 main.py
cd output
sudo git add .
sudo git commit -m "$(date +'%Y-%m-%d %H:%M:%S')"
sudo git push origin main