From 92827106e20cee731070c9bf1f8421b4a65a87d6 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Fri, 7 Nov 2025 05:39:08 -0700 Subject: [PATCH] fixies --- customscripts/pi_create_image | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/customscripts/pi_create_image b/customscripts/pi_create_image index 94060ab..361542f 100644 --- a/customscripts/pi_create_image +++ b/customscripts/pi_create_image @@ -47,12 +47,12 @@ if [ ! -z "$2" ]; then fi # shrink and compress the image -webhook "Copied the disk to $imgname ($imgsize), compressing to $xzname" +webhook "Copied the disk to $imgname size $imgsize, compressing to $xzname" sudo pishrink -Z -v -a $imgname xzsize=$(du -h $xzname) # xz sha256 -webhook "$imgname ($imgsize) shrunk to $xzname ($xzsize), calculating sha256 checksums..." +webhook "$imgname size $imgsize shrunk to $xzname size $xzsize, calculating sha256 checksums..." sha256sum $xzname | tee -a $info # log filesizes @@ -67,6 +67,7 @@ sudo chown $username:$username $xzname webhook "testing archive $xzname" xz -t $xzname ret=$? + # if test fails if [ $ret -gt 0 ]; then webhook "FAIL! ARCHIVE DES NOT CHECK return code: $ret EXITING" @@ -76,6 +77,7 @@ else webhook "Archive Test SUCCESS" fi +# always generate last checksum sha256sum $xzname | tee -a $info # finish and notify