Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c55081a

Browse files
authored
Fix issue if DISCORD_WEBHOOK not set
1 parent b5725de commit c55081a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/lib.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,10 @@ CheckAndUpdateNode () {
417417
# RETURN = 0 Log done 1 Log error
418418
#############################################################
419419
LogEvents () {
420+
# Check if RESCUE_MAS_AMOUNT is set into config.ini or set it to 0
421+
if [ ! -v DISCORD_WEBHOOK ]; then DISCORD_WEBHOOK=0 ; fi
422+
# Set current date
420423
Date=$(date +%Y%m%d-%HH%M)
421-
DayDate=$(date +%Y%m%d)
422424
# For each Event
423425
MyEvents=("$@")
424426
for Event in "${MyEvents[@]}"

0 commit comments

Comments
 (0)