Fix colours in check mode
This commit is contained in:
parent
a8e4f54266
commit
703c353c1b
10
bare.sh
10
bare.sh
|
@ -989,14 +989,14 @@ for f in $REPO_LIST; do
|
||||||
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 __${REPO}__ 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 __${REPO}__ 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
|
||||||
errcount=$(( $errcount + 1))
|
errcount=$(( $errcount + 1))
|
||||||
rv=2
|
rv=2
|
||||||
|
@ -1005,16 +1005,16 @@ for f in $REPO_LIST; do
|
||||||
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 __${REPO}__ failed on $humanstamp."
|
cecho "$RED" "CRITICAL: Last backup for $BOLD${REPO}$PLAIN$RED failed on $humanstamp."
|
||||||
fi
|
fi
|
||||||
rv=2
|
rv=2
|
||||||
errcount=$(( $errcount + 1))
|
errcount=$(( $errcount + 1))
|
||||||
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 '$REPO'"
|
cecho "$YELLOW" "WARNING: No history found for repo $BOLD$REPO$PLAIN$YELLOW'"
|
||||||
fi
|
fi
|
||||||
rv=1
|
rv=1
|
||||||
warncount=$(( $warncount + 1))
|
warncount=$(( $warncount + 1))
|
||||||
|
|
Loading…
Reference in New Issue