2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

NanoDroid-Font: in Sytem Mode only backup original font, if the custom font provided actually exists

This commit is contained in:
Christopher Roy Bratusek 2018-08-10 19:52:37 +02:00
parent 43bf24d5e0
commit db89d9b76c
2 changed files with 4 additions and 3 deletions

View File

@ -15,8 +15,9 @@
### General Changes
* Full package
* NanoDroid-Font (nanodroid-font)
* add `Splatoon` and `SuperMarioOdyssey` fonts
* in Sytem Mode only backup original font, if the custom font provided actually exists
* README
* add weblinks in the Credits section

View File

@ -79,9 +79,9 @@ set_font () {
error "Font ${1} does not exist"
fi
else
backup_font
if [ -f /system/fonts/NanoDroid/${1}.ttf ]; then
backup_font
for font in ${FONTFILES}; do
ln -sf /system/fonts/NanoDroid/${1}.ttf \
/system/fonts/${font} || \