This repository was archived by the owner on Dec 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,20 +132,16 @@ downloadApp() {
132132 chooseVersion || return 1
133133 findPatchedApp || return 1
134134 [ -e " apps/$APP_NAME /.data" ] && source " apps/$APP_NAME /.data"
135- if [[ " $APP_FORMAT " == " APK" && \
136- " $PREFER_SPLIT_APK " == " off" && \
137- " $( stat -c %s " apps/$APP_NAME /$APP_VER .apk" 2> /dev/null || echo 0) " == " $APP_SIZE "
138- ]]; then
139- return 0
140- elif [[ " $APP_FORMAT " == " BUNDLE" && \
141- " $PREFER_SPLIT_APK " == " on" &&
142- ( -e " apps/$APP_NAME /$APP_VER .apk" || -e " apps/$APP_NAME /$APP_VER .apkm" )
143- ]]; then
144- if [ " $( stat -c %s " apps/$APP_NAME /$APP_VER .apk" 2> /dev/null || echo 0) " == " $APP_SIZE " ]; then
135+ if [ " $( stat -c %s " apps/$APP_NAME /$APP_VER .apk" 2> /dev/null || echo 0) " == " $APP_SIZE " ]; then
136+ if " ${DIALOG[@]} " \
137+ --title ' | App Found |' \
138+ --defaultno \
139+ --yesno " Apk file already exists!!\nDo you want to download again?" -1 -1\
140+ ; then
141+ rm -rf " apps/$APP_NAME " & > /dev/null
142+ else
145143 return 0
146144 fi
147- else
148- rm -rf apps/" $APP_NAME " & > /dev/null
149145 fi
150146 fetchDownloadURL || return 1
151147 downloadAppFile || return 1
You can’t perform that action at this time.
0 commit comments