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