From ae11d92042b1e864bcc35f88bda488881aebd48d Mon Sep 17 00:00:00 2001 From: chrunchyjesus Date: Tue, 23 Apr 2019 20:08:52 +0200 Subject: [PATCH] ony search for shellcheck executable when flycheck is enabled --- modules/lang/sh/doctor.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/lang/sh/doctor.el b/modules/lang/sh/doctor.el index 0a9687a29..e85643b71 100644 --- a/modules/lang/sh/doctor.el +++ b/modules/lang/sh/doctor.el @@ -1,5 +1,5 @@ ;;; lang/sh/doctor.el -*- lexical-binding: t; -*- -(when! (not (executable-find "shellcheck")) - (warn! "Couldn't find shellcheck. Shell script linting will not work")) - +(when (featurep! :tools flycheck) + (unless (executable-find "shellcheck") + (warn! "Couldn't find shellcheck. Shell script linting will not work")))