ony search for shellcheck executable when flycheck is enabled

This commit is contained in:
chrunchyjesus 2019-04-23 20:08:52 +02:00
parent e5e05f9d51
commit ae11d92042
No known key found for this signature in database
GPG key ID: 0C364160C9308A88

View file

@ -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")))