.
backup.sh / bash (push) Successful in 11s Details

This commit is contained in:
Marco Cetica 2024-04-04 15:41:43 +02:00
parent e881798dad
commit d67c2efd86
Signed by: marco
GPG Key ID: 45060A949E90D0FD
1 changed files with 2 additions and 0 deletions

View File

@ -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