diff --git a/roles/lib/setup-restic.yml b/roles/lib/setup-restic.yml index 55716b4..fce1758 100644 --- a/roles/lib/setup-restic.yml +++ b/roles/lib/setup-restic.yml @@ -112,7 +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) + details=$(grep -A4 "Added to the repository:" backup.out) >backup.out ./discord.sh "$(hostname) backup complete $details" else