even bettar

This commit is contained in:
2026-05-12 03:34:44 -06:00
parent 372b12d452
commit 7719c92b89
+2 -1
View File
@@ -19,7 +19,7 @@ when_done () {
} }
delete_sha256_files () { delete_sha256_files () {
echo -e "${GREEN}Nuking all .sha256 files in $backup_dir${RESET}" echo -e "${GREEN}Nuking all .sha256 files in $backup_dir${RESET}\n"
find "$backup_dir" -not -path "*.git*" -type f -name "*.sha256" -delete find "$backup_dir" -not -path "*.git*" -type f -name "*.sha256" -delete
} }
@@ -33,6 +33,7 @@ verify_sha256_files() {
echo "Checking: $file" echo "Checking: $file"
if ! sha256sum -c "$file"; then if ! sha256sum -c "$file"; then
# here is where i can handle bad checksums
echo -e "${RED}FAILED: $file${RESET}" >&2 echo -e "${RED}FAILED: $file${RESET}" >&2
failed=1 failed=1
fi fi