Fix to support change in telegram markdown usage

This commit is contained in:
Rob Pearce 2023-11-27 10:59:37 +11:00
parent b768775a7a
commit 461ed4a95f
1 changed files with 4 additions and 4 deletions

View File

@ -1051,14 +1051,14 @@ for f in $REPO_LIST; do
if [[ $code -eq 0 ]]; then if [[ $code -eq 0 ]]; then
if [[ $age -le $oneday ]]; then if [[ $age -le $oneday ]]; then
if [[ $TELEGRAM -eq 1 ]]; then if [[ $TELEGRAM -eq 1 ]]; then
echo "**OK**: Last backup for __${REPO}__ succeeded on $humanstamp." echo "*OK*: Last backup for _${REPO}_ succeeded on $humanstamp."
else else
cecho "$GREEN" "OK: Last backup for $BOLD${REPO}$PLAIN$GREEN succeeded on $humanstamp." cecho "$GREEN" "OK: Last backup for $BOLD${REPO}$PLAIN$GREEN succeeded on $humanstamp."
fi fi
rv=0 rv=0
else else
if [[ $TELEGRAM -eq 1 ]]; then if [[ $TELEGRAM -eq 1 ]]; then
echo "**CRITICAL**: Last backup for __${REPO}__ succeeded on $humanstamp (age $age not in last 24 hours)." echo "*CRITICAL*: Last backup for _${REPO}_ succeeded on $humanstamp (age $age not in last 24 hours)."
else else
cecho "$RED" "CRITICAL: Last backup for $BOLD${REPO}${PLAIN}${RED} succeeded on $humanstamp (age $age not in last 24 hours)." cecho "$RED" "CRITICAL: Last backup for $BOLD${REPO}${PLAIN}${RED} succeeded on $humanstamp (age $age not in last 24 hours)."
fi fi
@ -1067,7 +1067,7 @@ for f in $REPO_LIST; do
fi fi
else else
if [[ $TELEGRAM -eq 1 ]]; then if [[ $TELEGRAM -eq 1 ]]; then
echo "**CRITICAL**: Last backup for __${REPO}__ failed on $humanstamp." echo "*CRITICAL*: Last backup for _${REPO}_ failed on $humanstamp."
else else
cecho "$RED" "CRITICAL: Last backup for $BOLD${REPO}$PLAIN$RED failed on $humanstamp." cecho "$RED" "CRITICAL: Last backup for $BOLD${REPO}$PLAIN$RED failed on $humanstamp."
fi fi
@ -1076,7 +1076,7 @@ for f in $REPO_LIST; do
fi fi
else else
if [[ $TELEGRAM -eq 1 ]]; then if [[ $TELEGRAM -eq 1 ]]; then
echo "**WARNING**: No history found for repo __${REPO}__" echo "*WARNING*: No history found for repo _${REPO}_"
else else
cecho "$YELLOW" "WARNING: No history found for repo $BOLD$REPO$PLAIN$YELLOW'" cecho "$YELLOW" "WARNING: No history found for repo $BOLD$REPO$PLAIN$YELLOW'"
fi fi