fix: patcher(mbcpapp): app check grep output does not redirect to /dev/null
grep output is not needed in unpack stage where grep things is only used to check if the unpacked app is actually MB (Flutter) or not Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
2514da5915
commit
eaac6213fe
1 changed files with 2 additions and 2 deletions
|
|
@ -118,9 +118,9 @@ unpack_mbcp() {
|
||||||
rm -rf 'mbapk/*merged.apk'
|
rm -rf 'mbapk/*merged.apk'
|
||||||
java -jar tools/apkeditor.jar d -i mbapk/*.apk -o mbapk/mbapk_unpacked || { err "Unpacking failed !" ; return 1 ; }
|
java -jar tools/apkeditor.jar d -i mbapk/*.apk -o mbapk/mbapk_unpacked || { err "Unpacking failed !" ; return 1 ; }
|
||||||
touch 'mbapk/mbapk_unpacked/isreal_unpacked'
|
touch 'mbapk/mbapk_unpacked/isreal_unpacked'
|
||||||
unzip -l mbapk/MBOriginal.apk | grep -oH "flutter_assets" && good "Current app is Flutter!" || { err "Current converted app is not Flutter, or too outdated, cannot continue! Deleting files..." ; rm -rf mbapk/* ; return 1 ;
|
unzip -l mbapk/MBOriginal.apk | grep -oH "flutter_assets" > /dev/null 2>&1 && good "Current app is Flutter!" || { err "Current converted app is not Flutter, or too outdated, cannot continue! Deleting files..." ; rm -rf mbapk/* ; return 1 ;
|
||||||
}
|
}
|
||||||
unzip -l mbapk/MBOriginal.apk | grep -oH "ic-appmb.ttf" && good "Current converted app is MBBank! Continuing" || { err "Current converted app is NOT MBBank! Deleting files..." ; rm -rf mbapk/* ; return 1 ; }
|
unzip -l mbapk/MBOriginal.apk | grep -oH "ic-appmb.ttf" > /dev/null 2>&1 && good "Current converted app is MBBank! Continuing" || { err "Current converted app is NOT MBBank! Deleting files..." ; rm -rf mbapk/* ; return 1 ; }
|
||||||
info "Cleaning useless files..."
|
info "Cleaning useless files..."
|
||||||
rm -rf 'mbapk/mbapk_unpacked/root/assets/_4A9w8flncUrhDOG8dyqLi_azBTYT3PlSXz0hiCzRQA_'
|
rm -rf 'mbapk/mbapk_unpacked/root/assets/_4A9w8flncUrhDOG8dyqLi_azBTYT3PlSXz0hiCzRQA_'
|
||||||
rm -rf 'mbapk/mbapk_unpacked/root/assets/0QDl12M5S2hKxoKF4cNI4kEX1qDQRMiOd34TXjSjy4M_'
|
rm -rf 'mbapk/mbapk_unpacked/root/assets/0QDl12M5S2hKxoKF4cNI4kEX1qDQRMiOd34TXjSjy4M_'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue