From 461ed4a95fdaa7b21d8a1c44e17728033847c587 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Mon, 27 Nov 2023 10:59:37 +1100 Subject: [PATCH] Fix to support change in telegram markdown usage --- bare.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bare.sh b/bare.sh index 2519bab..d113638 100755 --- a/bare.sh +++ b/bare.sh @@ -1051,14 +1051,14 @@ for f in $REPO_LIST; do if [[ $code -eq 0 ]]; then if [[ $age -le $oneday ]]; 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 cecho "$GREEN" "OK: Last backup for $BOLD${REPO}$PLAIN$GREEN succeeded on $humanstamp." fi rv=0 else 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 cecho "$RED" "CRITICAL: Last backup for $BOLD${REPO}${PLAIN}${RED} succeeded on $humanstamp (age $age not in last 24 hours)." fi @@ -1067,7 +1067,7 @@ for f in $REPO_LIST; do fi else if [[ $TELEGRAM -eq 1 ]]; then - echo "**CRITICAL**: Last backup for __${REPO}__ failed on $humanstamp." + echo "*CRITICAL*: Last backup for _${REPO}_ failed on $humanstamp." else cecho "$RED" "CRITICAL: Last backup for $BOLD${REPO}$PLAIN$RED failed on $humanstamp." fi @@ -1076,7 +1076,7 @@ for f in $REPO_LIST; do fi else if [[ $TELEGRAM -eq 1 ]]; then - echo "**WARNING**: No history found for repo __${REPO}__" + echo "*WARNING*: No history found for repo _${REPO}_" else cecho "$YELLOW" "WARNING: No history found for repo $BOLD$REPO$PLAIN$YELLOW'" fi