Skip to content

Commit

Permalink
Fix issue if DISCORD_WEBHOOK not set
Browse files Browse the repository at this point in the history
  • Loading branch information
rykcod authored Jan 24, 2024
1 parent b5725de commit c55081a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,10 @@ CheckAndUpdateNode () {
# RETURN = 0 Log done 1 Log error
#############################################################
LogEvents () {
# Check if RESCUE_MAS_AMOUNT is set into config.ini or set it to 0
if [ ! -v DISCORD_WEBHOOK ]; then DISCORD_WEBHOOK=0 ; fi
# Set current date
Date=$(date +%Y%m%d-%HH%M)
DayDate=$(date +%Y%m%d)
# For each Event
MyEvents=("$@")
for Event in "${MyEvents[@]}"
Expand Down

0 comments on commit c55081a

Please sign in to comment.