From 4d63712093f33eb3224f560f6bc9dcb9c9909eb5 Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 4 Sep 2019 08:22:41 +0200 Subject: [PATCH] don't offer to install font if there is no curl --- internal/wizard.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/wizard.zsh b/internal/wizard.zsh index a386d5b5..56733098 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -245,6 +245,7 @@ function can_install_font() { return fi if [[ "$(uname)" == Darwin && $TERM_PROGRAM == iTerm.app ]]; then + (( $+commands[curl] )) || return [[ $TERM_PROGRAM_VERSION == [2-9]* ]] || return if [[ -f ~/Library/Fonts ]]; then [[ -d ~/Library/Fonts && -w ~/Library/Fonts ]] || return