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

merge-requests/23/head
Christopher Roy Bratusek 6 years ago
parent 43bf24d5e0
commit db89d9b76c

@ -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

@ -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} || \

Loading…
Cancel
Save