mirror of
https://github.com/topjohnwu/Magisk
synced 2025-08-31 23:30:34 +00:00
scripts: add author name back to module install banner print
This commit is contained in:
@@ -61,11 +61,15 @@ resolve_vars() {
|
||||
}
|
||||
|
||||
print_title() {
|
||||
local len=$(echo -n $1 | wc -c)
|
||||
local len line1len line2len pounds
|
||||
line1len=$(echo -n $1 | wc -c)
|
||||
line2len=$(echo -n $2 | wc -c)
|
||||
[ $line1len -gt $line2len ] && len=$line1len || len=$line2len
|
||||
len=$((len + 2))
|
||||
local pounds=$(printf "%${len}s" | tr ' ' '*')
|
||||
pounds=$(printf "%${len}s" | tr ' ' '*')
|
||||
ui_print "$pounds"
|
||||
ui_print " $1 "
|
||||
[ "$2" ] && ui_print " $2 "
|
||||
ui_print "$pounds"
|
||||
}
|
||||
|
||||
@@ -654,8 +658,9 @@ install_module() {
|
||||
$BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules
|
||||
local MODULEROOT=$NVBASE/$MODDIRNAME
|
||||
MODID=`grep_prop id $TMPDIR/module.prop`
|
||||
MODPATH=$MODULEROOT/$MODID
|
||||
MODNAME=`grep_prop name $TMPDIR/module.prop`
|
||||
MODAUTH=`grep_prop author $TMPDIR/module.prop`
|
||||
MODPATH=$MODULEROOT/$MODID
|
||||
|
||||
# Create mod paths
|
||||
rm -rf $MODPATH 2>/dev/null
|
||||
@@ -681,7 +686,7 @@ install_module() {
|
||||
ui_print "- Setting permissions"
|
||||
set_permissions
|
||||
else
|
||||
print_title "$MODNAME"
|
||||
print_title "$MODNAME" "by $MODAUTH"
|
||||
print_title "Powered by Magisk"
|
||||
|
||||
unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2
|
||||
|
Reference in New Issue
Block a user