Bugfix
when sending notification
This commit is contained in:
@@ -80,6 +80,7 @@ send_gotify_notification() {
|
||||
|
||||
send_pushover_notification() {
|
||||
echo -e "Sending Pushover notification ..."
|
||||
|
||||
curl -S -s -o /dev/null -F "token=$BASH_APP" \
|
||||
-F "user=$USER_KEY" \
|
||||
-F "title=$1" \
|
||||
@@ -317,11 +318,11 @@ done
|
||||
# Affichage des serveurs qui ne répondent pas
|
||||
|
||||
if [ -f "./urls_down_list_curl.txt" ]; then
|
||||
cp "./urls_down_list_curl.txt" urls_down_list_curl.bak
|
||||
url_down=$(cat "./urls_down_list_curl.txt")
|
||||
|
||||
if [ "$x" -ne 1 ]; then
|
||||
echo -e "\n${redbold}Url down: ${reset}"
|
||||
|
||||
cp "./urls_down_list_curl.txt" urls_down_list_curl.bak
|
||||
url_down=$(cat "./urls_down_list_curl.txt")
|
||||
echo -e "$url_down"
|
||||
|
||||
# On affiche uniquement les erreurs rencontrées
|
||||
|
||||
Reference in New Issue
Block a user