From 8787138f20b40832ffb6b5ce0b8affd836e25d13 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..faaf030 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" + grep -wq "$SHA256" "$BACKUP_SH_SHA256_FILE" printf "[FATAL] - integrity error for '%s'.\n" "$file" rm -rf backup.sh.tar.gz backup.sh.tmp exit 1