Skip to content

Commit

Permalink
fix(c80fa07): Only abort if we're at the first occourence
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoScordino committed Oct 2, 2024
1 parent 85d387e commit 1ef723f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions extract_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"<code>Extraction failed!</code>" > /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'"<code>Extraction failed!</code>" > /dev/null
terminate 1
fi
}
}
# Clean-up
Expand Down

0 comments on commit 1ef723f

Please sign in to comment.