Restic logfile - list only changed files?

There are several topics in the forum that have methods of getting the changed/added/deleted listing. The following works for me. I use this at the end of the bash script for backups. The script is executed as a cron job so I get the results emailed to myself. If there aren’t a lot of changes then running it from a console is satisfactory.

PREV=$(/usr/bin/restic snapshots --compact | tail -4 | head -1 | awk '{print $1}')
LAST=$(/usr/bin/restic snapshots --compact | tail -3 | head -1 | awk '{print $1}')
/usr/bin/restic diff "$PREV" "$LAST"