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:
Cuynu 2026-04-25 14:47:31 +07:00
commit eaac6213fe
Signed by: cuynu
GPG key ID: 1F01341D0B42B51A

View file

@ -118,9 +118,9 @@ unpack_mbcp() {
rm -rf 'mbapk/*merged.apk'
java -jar tools/apkeditor.jar d -i mbapk/*.apk -o mbapk/mbapk_unpacked || { err "Unpacking failed !" ; return 1 ; }
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..."
rm -rf 'mbapk/mbapk_unpacked/root/assets/_4A9w8flncUrhDOG8dyqLi_azBTYT3PlSXz0hiCzRQA_'
rm -rf 'mbapk/mbapk_unpacked/root/assets/0QDl12M5S2hKxoKF4cNI4kEX1qDQRMiOd34TXjSjy4M_'