From 21e3ee8d7425683171eaca370446728744eb1f08 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Sat, 9 Nov 2024 09:57:09 +0100 Subject: [PATCH] sha256sum liest von stdout. --- backupsd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backupsd b/backupsd index 4be2785..21838b9 100755 --- a/backupsd +++ b/backupsd @@ -2,7 +2,7 @@ BACKUP_REPO="/tank/Backup-Repo" TEMP_DIR="${HOME}/backup" -VERSION="2.02" +VERSION="2.03" CMD_COMPRESS='pbzip2' verbose=false testmode=false @@ -41,6 +41,7 @@ sudo dd if=${DEVICE} status=progress bs=8M | tee ${FILE} | sha256sum > ${TEMP_DI echo "validating the image..." +sha256sum -c ${TEMP_DIR}/sdcard.sha256 <${FILE} echo "compressing image with ${CMD_COMPRESS}" ${CMD_COMPRESS} ${FILE}