Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmh committed Jan 22, 2022
1 parent a70aa27 commit 1dbda78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ SYSTEMFILECUSTOMPATH=/system$FILECUSTOMPATH
if [ -f $MIRRORPATH$FILECUSTOMPATH$FILECUSTOM ]; then
ui_print "- Migrating $FILECUSTOM"
mkdir -p $MODPATH$SYSTEMFILECUSTOMPATH
if grep "google-sans" $MIRRORPATH$FILECUSTOMPATH$FILECUSTOM ; then
if grep -q "google-sans" $MIRRORPATH$FILECUSTOMPATH$FILECUSTOM ; then
# Google Pixel's RRO
sed -i '
sed '
/<family customizationType=\"new-named-family\" name=\"google-sans-medium\">/,/<\/family>/ {/<\/family>/! d;
/<\/family>/ s/.*/ <alias name="google-sans-medium" to="google-sans" weight="500" \/>/};
/<family customizationType=\"new-named-family\" name=\"google-sans-bold\">/,/<\/family>/ {/<\/family>/! d;
Expand Down

0 comments on commit 1dbda78

Please sign in to comment.