From 6d45b13e72bf16bbfca17144dce72fcf8ebe89ca Mon Sep 17 00:00:00 2001 From: ant Date: Tue, 1 Oct 2024 17:21:16 +0200 Subject: [PATCH] refactor: Match Telegram messages with Python dumper's --- extract_and_push.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extract_and_push.sh b/extract_and_push.sh index 7be6d97..d544cfb 100755 --- a/extract_and_push.sh +++ b/extract_and_push.sh @@ -259,7 +259,7 @@ else # Extract the images for p in "${PARTITIONS[@]}"; do if [[ -f $p.img ]]; then - sendTG_edit_wrapper temporary "${MESSAGE_ID}" "${MESSAGE}"$'\n'"Partition Name: ${p}" > /dev/null + # Create a folder for each partition mkdir "$p" || rm -rf "${p:?}"/* # Try to extract images via 'fsck.erofs' @@ -272,9 +272,6 @@ else 7zz -snld x "$p".img -y -o"$p"/ > /dev/null || { echo "[ERROR] Extraction via '7zz' failed." - # Clear the last partition status - sendTG_edit_wrapper permanent "${MESSAGE_ID}" "${MESSAGE}" > /dev/null - # In case of failure, bail out and abort dumping altogether sendTG_edit_wrapper permanent "${MESSAGE_ID}" "${MESSAGE}"$'\n'"Extraction failed!" > /dev/null terminate 1