Skip to content

Commit

Permalink
close #24
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmh committed Apr 11, 2021
1 parent 39546ee commit db99696
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions customize.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[ -x "$(which magisk)" ] && MIRRORPATH=$(magisk --path)/.magisk/mirror || unset MIRRORPATH
ui_print "- Migrating fonts.xml"
FILE=fonts.xml
FILES="fonts.xml fonts_base.xml"
FILEPATH=/system/etc/
for FILE in $FILES
do
if [ $API -ge "26" ] && [ -f $MIRRORPATH$FILEPATH$FILE ]; then
ui_print "- Migrating $FILE"
mkdir -p $MODPATH$FILEPATH
cp -af $MIRRORPATH$FILEPATH$FILE $MODPATH$FILEPATH$FILE
sed -i '
Expand Down Expand Up @@ -39,5 +41,6 @@ fi
else
ui_print "- Migration FAILED. Nothing have done to your system."
fi

rm $MODPATH/LICENSE* $MODPATH/*.py 2>/dev/null
done
ui_print "- Migration done."
rm $MODPATH/LICENSE* 2>/dev/null

0 comments on commit db99696

Please sign in to comment.