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