returning restic.sh

This commit is contained in:
tolerryan
2024-12-30 01:28:33 -06:00
parent c0c75efdc6
commit 0786b55de4

View File

@@ -112,9 +112,7 @@
# If the exit status is 0 (success), send a success message
./discord.sh "$(hostname) backup complete"
elif [ $status -eq 3 ]; then
details=$(grep -A4 "Added to the repository:" backup.out)
./discord.sh "$(hostname) backup complete $details"
>backup.out
./discord.sh "$(hostname) backup complete"
else
# If the exit status is not 0 (failure), send a failure message
./discord.sh "$(hostname) Backup has failed"