diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-03 21:07:55 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-03 21:07:55 +0300 |
commit | 7f90c103d1b13fae1fac2e75562d9eaca9d0a0f8 (patch) | |
tree | 5f4ef26a9db921a4f344b6876141481f63a866ea /internal/wizard.zsh | |
parent | ebcb8cd307bfe1564b250f0b0b951e05439de496 (diff) |
wizard: offer to override font on Termux if it is not MesloLGS NF
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-x | internal/wizard.zsh | 6 |
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 |