aboutsummaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-09-04 09:22:41 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-09-04 09:22:41 +0300
commit4d63712093f33eb3224f560f6bc9dcb9c9909eb5 (patch)
tree15c658b84bd6e4029323a9b4f7412ad976b5b152 /internal/wizard.zsh
parent200b02b242f291ee988e19dad7196f2150c0a5d5 (diff)
don't offer to install font if there is no curl
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-xinternal/wizard.zsh1
1 files changed, 1 insertions, 0 deletions
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