From d67c2efd868dcea96797901f49bfcc64fdc6e10b Mon Sep 17 00:00:00 2001 From: Marco Cetica Date: Thu, 4 Apr 2024 15:41:43 +0200 Subject: [PATCH] . --- backup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backup.sh b/backup.sh index 2867c27..14ce57a 100755 --- a/backup.sh +++ b/backup.sh @@ -179,6 +179,8 @@ extract_backup() { SHA256="$(gethash "$file")" # Check if checksum file contains hash if ! grep -wq "$SHA256" "$BACKUP_SH_SHA256_FILE"; then + gethash "$file" + cat "$BACKUP_SH_SHA256_FILE" printf "[FATAL] - integrity error for '%s'.\n" "$file" rm -rf backup.sh.tar.gz backup.sh.tmp exit 1