From db89d9b76c5cebf6dd346d955cc865432068a1c8 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 10 Aug 2018 19:52:37 +0200 Subject: [PATCH] NanoDroid-Font: in Sytem Mode only backup original font, if the custom font provided actually exists --- ChangeLog.md | 3 ++- Full/system/xbin/nanodroid-font | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index dc621b4..36ffbd1 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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 diff --git a/Full/system/xbin/nanodroid-font b/Full/system/xbin/nanodroid-font index 2d7d193..7c3d46b 100755 --- a/Full/system/xbin/nanodroid-font +++ b/Full/system/xbin/nanodroid-font @@ -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} || \