Updated to mirror and fixes

This commit is contained in:
2023-06-22 14:48:36 +02:00
parent fadb558f75
commit c77f90e951
5 changed files with 40 additions and 10 deletions

View File

@@ -1,6 +1,31 @@
#!/bin/bash
git fetch
if [ "$(git rev-parse HEAD)" != "$(git rev-parse "@{u}")" ]; then
git stash && git pull
cd .. && chmod +x ./*.sh
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://git.justw.tf/Lightemerald/Microsoft-Rewards-bot
fi
sudo dnf up -y
git stash && git pull
cd Microsoft-Rewards-bot && git stash && git pull && git checkout 03476776e9c58029dedaeee431958b5d04364bcf && pip install -r requirements.txt
clear
cd Microsoft-Rewards-bot || exit
git fetch
if [ "$(git rev-parse HEAD)" != "$(git rev-parse "@{u}")" ]; then
git stash && git pull && pip install -r requirements.txt
fi
cd .. && chmod +x ./*.sh
clear
echo "Update done!"