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

Commit 49b88a0

Browse files
committed
fix: don't delete app on format mismatch
1 parent dcf2ecc commit 49b88a0

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

modules/app/download.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,7 @@ downloadApp() {
159159

160160
[ -e "apps/$APP_NAME/.data" ] && source "apps/$APP_NAME/.data"
161161

162-
if [[ "$APP_FORMAT" == "BUNDLE" && "$PREFER_SPLIT_APK" == "off" ]] ||
163-
[[ "$APP_FORMAT" == "APK" && "$PREFER_SPLIT_APK" == "on" ]]; then
164-
165-
rm -rf "apps/$APP_NAME" &> /dev/null
166-
167-
elif [ "$(stat -c %s "apps/$APP_NAME/$APP_VER.apk" 2> /dev/null || echo 0)" == "$APP_SIZE" ]; then
162+
if [ "$(stat -c %s "apps/$APP_NAME/$APP_VER.apk" 2> /dev/null || echo 0)" == "$APP_SIZE" ]; then
168163
if "${DIALOG[@]}" \
169164
--title '| App Found |' \
170165
--defaultno \

0 commit comments

Comments
 (0)