fix(runcron): typos

This commit is contained in:
Antoine Lima 2023-03-23 22:02:20 +00:00
parent b9bbbe7d55
commit ff1e2e6e4a

View File

@ -4,10 +4,10 @@ ret=$?
if [[ "$ret" != 0 || -s /tmp/autorestic-err.log ]]
then
cat <(echo "Command failed with return code $ret and log:") /tmp/tmp/autorestic-err.log <(echo "===============") /tmp/autorestic.log | mail -s "Autorestic Backup: Failed" root
cat <(echo "Command failed with return code $ret and log:") /tmp/autorestic-err.log <(echo "===============") /tmp/autorestic.log | mail -s "Autorestic Backup: Failed" root
else
if [[ $(wc -l < /tmp/autorestic.log) -gt 15 ]]
then
cat <(echo -e "Command successfully finished with the following log:") /tmp/tmp/autorestic-err.log <(echo "===============") /tmp/autorestic.log | mail -s "Autorestic Backup: Success" root
cat <(echo -e "Command successfully finished with the following log:") /tmp/autorestic-err.log <(echo "===============") /tmp/autorestic.log | mail -s "Autorestic Backup: Success" root
fi
fi