Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit 75464b8

Browse files
committed
fix: back to previous task after fail
1 parent f8d2d33 commit 75464b8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

modules/app/download.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ downloadAppFile() {
129129

130130
downloadApp() {
131131
local APP_FORMAT APP_EXT APP_SIZE APP_URL
132-
chooseVersion || return 1
132+
if ! chooseVersion; then
133+
TASK="CHOOSE_APP"
134+
return 1
135+
fi
133136
findPatchedApp || return 1
134137
[ -e "apps/$APP_NAME/.data" ] && source "apps/$APP_NAME/.data"
135138
if [ "$(stat -c %s "apps/$APP_NAME/$APP_VER.apk" 2> /dev/null || echo 0)" == "$APP_SIZE" ]; then

0 commit comments

Comments
 (0)