From 1ef723f2ea86931b57d53dc6efc4bdcd3ce7f075 Mon Sep 17 00:00:00 2001 From: ant Date: Wed, 2 Oct 2024 15:57:21 +0200 Subject: [PATCH] fix(c80fa07f780849a92086974536972ca200398f7e): Only abort if we're at the first occourence --- extract_and_push.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extract_and_push.sh b/extract_and_push.sh index 0ea4c0a..da39d3d 100755 --- a/extract_and_push.sh +++ b/extract_and_push.sh @@ -272,9 +272,12 @@ else 7zz -snld x "$p".img -y -o"$p"/ > /dev/null || { echo "[ERROR] Extraction via '7zz' failed." - # In case of failure, bail out and abort dumping altogether - sendTG_edit_wrapper permanent "${MESSAGE_ID}" "${MESSAGE}"$'\n'"Extraction failed!" > /dev/null - terminate 1 + # Only abort if we're at the first occourence + if [[ "${p}" == "${PARTITIONS[0]}" ]]; then + # In case of failure, bail out and abort dumping altogether + sendTG_edit_wrapper permanent "${MESSAGE_ID}" "${MESSAGE}"$'\n'"Extraction failed!" > /dev/null + terminate 1 + fi } } # Clean-up