diff --git a/shellcheck.hs b/shellcheck.hs index 8887a85..446aa3b 100644 --- a/shellcheck.hs +++ b/shellcheck.hs @@ -438,7 +438,7 @@ ioInterface options files = do return [home, xdg] readConfig file = do - exists <- doesPathExist file + exists <- doesFileExist file if exists then do (contents, _) <- inputFile file `catch` handler file