Skip to content

Commit

Permalink
fix: Resolve the logic behind USE_ALT_DUMPER (???)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoScordino committed Oct 11, 2024
1 parent d4a1384 commit 5d6f5c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dumpyarabot/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def dump(
return

url = context.args[0]
use_alt_dumper = "a" not in context.args[1:] if len(context.args) > 1 else True
use_alt_dumper = "a" in context.args[1:] if len(context.args) > 1 else False
force = "f" in context.args[1:] if len(context.args) > 1 else False
add_blacklist = "b" in context.args[1:] if len(context.args) > 1 else False

Expand Down
3 changes: 1 addition & 2 deletions extract_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[[ -z ${GITLAB_SERVER} ]] && GITLAB_SERVER="dumps.tadiphone.dev"
[[ -z ${PUSH_HOST} ]] && PUSH_HOST="dumps"
[[ -z $ORG ]] && ORG="dumps"
[[ -z ${USE_ALT_DUMPER} ]] && USE_ALT_DUMPER="false"

CHAT_ID="-1001412293127"

Expand Down Expand Up @@ -223,7 +222,7 @@ if [[ ! -f ${FILE} ]]; then
fi
fi

if [[ "${USE_ALT_DUMPER}" == "true" ]]; then
if [[ "${USE_ALT_DUMPER}" == "false" ]]; then
sendTG_edit_wrapper temporary "${MESSAGE_ID}" "${MESSAGE}"$'\n'"Extracting firmware with Python dumper..." > /dev/null
uvx dumpyara "${FILE}" -o "${PWD}" || {
sendTG_edit_wrapper permanent "${MESSAGE_ID}" "${MESSAGE}"$'\n'"<code>Extraction failed!</code>" > /dev/null
Expand Down

0 comments on commit 5d6f5c3

Please sign in to comment.