From 90035219714b770c810766630f561aa7ba5519b7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 2 Jun 2016 02:30:23 +0200 Subject: no listDirectory --- ymir/mlmmj-expose.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ymir/mlmmj-expose.nix b/ymir/mlmmj-expose.nix index 13f119c0..a69c6bb2 100644 --- a/ymir/mlmmj-expose.nix +++ b/ymir/mlmmj-expose.nix @@ -75,7 +75,7 @@ let getSubscribers :: IO [String] getSubscribers = map (map toLower) . concat <$> mapM (flip catchIOError (\e -> if isDoesNotExistError e then return [] else ioError e) . readDir) ["subscribers.d", "digesters.d"] where - readDir dir = concat <$> (mapM (fmap lines . readFile) . map (dir ) =<< (listDirectory dir)) + readDir dir = concat <$> (mapM (fmap lines . readFile) . map (dir ) . filter (not . (`elem` [".", ".."]))=<< (getDirectoryContents dir)) ''; buildCommand = '' mkdir -p $out/bin -- cgit v1.2.3