summaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-xinternal/wizard.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 67ef170a..e72cd92e 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -231,7 +231,11 @@ function can_install_font() {
if [[ "$(uname)" == Linux && "$(uname -o)" == Android ]]; then
(( $+commands[termux-reload-settings] )) || return
(( $+commands[curl] )) || return
- [[ ! -f ~/.termux/font.ttf ]] || return
+ if [[ -f ~/.termux/font.ttf ]]; then
+ [[ -r ~/.termux/font.ttf ]] || return
+ [[ -w ~/.termux/font.ttf ]] || return
+ ! grep -q 'MesloLGS NF' ~/.termux/font.ttf 2>/dev/null || return
+ fi
if [[ -f ~/.termux ]]; then
[[ -d ~/.termux && -w ~/.termux ]] || return
else