From 7f29a6cb967a3babdd77791003797da04e31a236 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Thu, 18 May 2023 22:02:19 +0200 Subject: [PATCH] Added webhook name and auto git stash to updater. --- start.sh | 2 +- update.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 7a51ede..986376f 100644 --- a/start.sh +++ b/start.sh @@ -18,7 +18,7 @@ fi function send_webhook() { local message="$1" - curl --silent -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$message\"}" "$webhook" + curl --silent -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$message\", \"username\": \"mcr-bot\"}" "$webhook" } vpns=$(nmcli connection show | grep vpn | awk '{print $1}') diff --git a/update.sh b/update.sh index f3e4e97..fd0c23f 100644 --- a/update.sh +++ b/update.sh @@ -1,6 +1,6 @@ sudo dnf up -y -git pull -cd Microsoft-Rewards-bot && git pull +git stash && git pull +cd Microsoft-Rewards-bot && git stash && git pull clear cd .. && chmod +x ./*.sh echo "Update done!" \ No newline at end of file