refactor: patch.sh: also remove unpacked app if unpack apk function is used
If you already unpacked APK, then if you use unpack apk function again, it will remove the unpacked app, and you will be able to unpack again without copying apks once again. Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
4aec802243
commit
57cf28a431
1 changed files with 3 additions and 1 deletions
|
|
@ -76,7 +76,9 @@ do
|
|||
# Check if apk is unpacked or not
|
||||
if [ -d ~/mbbpatch/MBCPApp/mbapk/mbapk_unpacked ]
|
||||
then
|
||||
echo 'APK already unpacked, no need to unpack again !'
|
||||
echo "APK already unpacked, removing unpacked app..."
|
||||
rm -rf 'mbapk/mbapk_unpacked'
|
||||
echo "Please unpack APK again !"
|
||||
else
|
||||
# Check if apktool exists or not
|
||||
if [ -f ~/mbbpatch/MBCPApp/tools/apktool_2.12.0.jar ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue