Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
E7KMbb committed Feb 14, 2020
1 parent ea0788d commit 00790c4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions common/functions.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##########################################################################################
#
# MMT Extended and E7KMbb Utility Functions
# MMT Extended Utility Functions
#
##########################################################################################

Expand All @@ -17,7 +17,10 @@ cleanup() {
ui_print " "
ui_print " **************************************"
ui_print " * MMT Extended by Zackptg5 @ XDA *"
ui_print " * E7KMbb by 依然的爱/Ai Sauce @ Coolapk *"
ui_print " **************************************"
ui_print " "
ui_print " **************************************"
ui_print " *E7KMbb by 依然的爱/Ai Sauce @ Coolapk*"
ui_print " **************************************"
ui_print " "
$DEBUG && debug_log
Expand Down Expand Up @@ -53,7 +56,7 @@ debug_log() {
}

device_check() {
local PROP=$(echo "$1" | tr '[:upper:]' '[:lower:]') i
local PROP=$(echo "$1" | tr '[:upper:]' '[:lower:]')
for i in /system /vendor /odm /product; do
if [ -f $i/build.prop ]; then
for j in "ro.product.device" "ro.build.product" "ro.product.vendor.device" "ro.vendor.product.device"; do
Expand Down Expand Up @@ -183,9 +186,9 @@ fi
# Debug
if $DEBUG; then
ui_print "- Debug mode"
LOGFILE=/storage/emulated/0/Download/$MODID-debug.log
ui_print " Debug log will be written to: $LOGFILE"
exec 2>$LOGFILE
LOGFILE=/storage/emulated/0/Download/$MODID-debug
ui_print " Debug log will be written to: $LOGFILE.log"
exec 2>$LOGFILE.log
set -x
fi

Expand Down

0 comments on commit 00790c4

Please sign in to comment.