From fe84b52e5e394bbd0cb5adb208515a9f346beaf8 Mon Sep 17 00:00:00 2001 From: JabLuszko Date: Sun, 18 Jul 2021 19:31:01 +0200 Subject: [PATCH] Add recursive to delete folders (#125) Seems like from time to time (or outdate scripts) wizard gives you apk as zip and it's getting unpacked and then everything hangs on unziping because files already exists. This should fix leftover files from previous broken installs. Still people need to update this file via job. https://cdn.discordapp.com/attachments/523602714244939787/826589735584792604/unknown.png https://cdn.discordapp.com/attachments/523602714244939787/826589798868320266/unknown.png --- update_mad.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_mad.sh b/update_mad.sh index cbf9b35..195522d 100755 --- a/update_mad.sh +++ b/update_mad.sh @@ -1,6 +1,6 @@ #!/system/bin/sh # update mad -# version 4.0 +# version 4.1 # created by GhostTalker, hijaked by krz # # adb connect %1:5555 @@ -146,7 +146,7 @@ case "$(curl -I -s -k -L $(get_pd_user) -H "origin: $origin" "$pserver/mad_apk/p *zip*) (cd /sdcard/Download/pogo until curl -o /sdcard/Download/pogo/pogo.zip -s -k -L $(get_pd_user) -H "origin: $origin" "$pserver/mad_apk/pogo/$arch/download" && unzip pogo.zip && rm pogo.zip ;do echo "Download ZIP PokemonGo" - /system/bin/rm -f /sdcard/Download/pogo/* + /system/bin/rm -fr /sdcard/Download/pogo/* sleep 2 done echo "Install ZIP PokemonGo" @@ -159,7 +159,7 @@ case "$(curl -I -s -k -L $(get_pd_user) -H "origin: $origin" "$pserver/mad_apk/p *vnd.android.package-archive*) until curl -o /sdcard/Download/pogo/pogo.apk -s -k -L $(get_pd_user) -H "origin: $origin" "$pserver/mad_apk/pogo/$arch/download" ;do echo "Download APK PokemonGo" - /system/bin/rm -f /sdcard/Download/pogo/* + /system/bin/rm -fr /sdcard/Download/pogo/* sleep 2 done echo "Install APK PokemonGo"