fix: patches(modify_app_theme): failing when apply certain theme
caused by calling a function before the function is created incorrectly error 1 handling too Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
eaac6213fe
commit
4527305c67
1 changed files with 4 additions and 4 deletions
|
|
@ -238,9 +238,7 @@ select opt in 'MBCP SemiPriority' 'MBCP MBClassic' 'Noel 2024' 'Tre trung' 'Mid-
|
||||||
good "Applied [Tre Trung] theme."
|
good "Applied [Tre Trung] theme."
|
||||||
;;
|
;;
|
||||||
'Viet Nam')
|
'Viet Nam')
|
||||||
[ -d "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/tetbinhngo ] && vn_binhngo || err "[tetbinhngo] theme not found! skipping..."
|
# v6.4.87 ~ v6.4.93
|
||||||
[ -d "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/giaiphong ] && vn_giaiphong || err "[giaiphong] theme not found! aborting..." && exit 1
|
|
||||||
# v6.4.87 ~ v6.4.93
|
|
||||||
vn_binhngo() {
|
vn_binhngo() {
|
||||||
info "Applying..."
|
info "Applying..."
|
||||||
rm -rf "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/tetbinhngo/*.webp
|
rm -rf "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/tetbinhngo/*.webp
|
||||||
|
|
@ -268,7 +266,9 @@ select opt in 'MBCP SemiPriority' 'MBCP MBClassic' 'Noel 2024' 'Tre trung' 'Mid-
|
||||||
echo "Patch applied by MBCPApp Patcher on $(uname -s -r) with commit : $(git rev-parse --short HEAD) at $(date)." >"mbapk/mbapk_unpacked/root/assets/mbcp_info/vn_theme.inf"
|
echo "Patch applied by MBCPApp Patcher on $(uname -s -r) with commit : $(git rev-parse --short HEAD) at $(date)." >"mbapk/mbapk_unpacked/root/assets/mbcp_info/vn_theme.inf"
|
||||||
good "Applied [Viet Nam] theme."
|
good "Applied [Viet Nam] theme."
|
||||||
}
|
}
|
||||||
;;
|
[ -d "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/tetbinhngo ] && vn_binhngo || err "[tetbinhngo] theme not found! skipping..."
|
||||||
|
[ -d "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/giaiphong ] && vn_giaiphong || err "[giaiphong] theme not found! aborting..." || exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
'Exit') exit ;;
|
'Exit') exit ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue