Files
mcr-bot/update.sh
Lightemerald 6c28e77aea Updated Script to V2
- New bot manager using timeout instead of schedules
 - Moved accounts to an accounts folder
 - New dynamic Updater
 - Improved VPN Importer to avoid duplicate
 - Switched back to master Bot
 - New config file
2023-06-20 17:14:12 +02:00

28 lines
570 B
Bash

git fetch
if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
git stash && git pull
exec "$0"
fi
if [ ! -d "accounts" ]; then
mkdir "accounts"
fi
if [ ! -d "vpn" ]; then
mkdir "vpn"
fi
if [ ! -d "Microsoft-Rewards-bot" ]; then
git clone https://github.com/farshadz1997/Microsoft-Rewards-bot
fi
sudo dnf up -y
cd Microsoft-Rewards-bot
git fetch
if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
git stash && git pull && git checkout master && pip install -r requirements.txt
fi
cd .. && chmod +x ./*.sh
clear
echo "Update done!"