From c00339f0248b8712007fdebc70d1792582623aa8 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Tue, 20 Jun 2023 15:47:43 +0200 Subject: [PATCH] Fix. --- start.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/start.sh b/start.sh index c034f49..abeb971 100644 --- a/start.sh +++ b/start.sh @@ -145,10 +145,7 @@ do read -t 1 break else - echo "File ./Microsoft-Rewards-bot/$vpn.json does not exist, skipping starting bot for this VPN" - if [ -n "$webhook" ]; then - send_webhook "[$host] ERROR: File ./Microsoft-Rewards-bot/$vpn.json does not exist, skipping starting bot for this VPN" - fi + send_webhook "[$host] ERROR: File ./Microsoft-Rewards-bot/$vpn.json does not exist, skipping starting bot for this VPN" read -t 3 break fi @@ -163,9 +160,6 @@ do attempt=$(( $attempt + 1 )) done else - echo "ERROR: VPN name is empty" - if [ -n "$webhook" ]; then - send_webhook "[$host] ERROR: VPN name is empty" - fi + send_webhook "[$host] ERROR: VPN name is empty" fi done