Skip to content

Commit

Permalink
Automatically release wakelock after running the builder
Browse files Browse the repository at this point in the history
  • Loading branch information
GyDavid22 committed Dec 28, 2022
1 parent 585c774 commit ae171bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android-interface.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ Possible reasons (in the order of commonality):
log "revanced-builder found."
log "All checks done."
fi
termux-wake-lock
}

run_builder() {
preflight
termux-wake-lock
echo
if [[ $1 == "--delete-cache" || $1 == "--dc" ]]; then
delete_cache
Expand All @@ -132,6 +132,7 @@ run_builder() {
if [[ $1 == "--delete-cache-after-no-keystore" || $1 == "--dcank" ]]; then
delete_cache_no_keystore
fi
termux-wake-unlock
}

delete_cache() {
Expand Down

0 comments on commit ae171bc

Please sign in to comment.