diff options
author | Joey Hess <joey@kitenet.net> | 2012-10-14 15:19:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-14 15:19:34 -0400 |
commit | a4fe8365f3745033a307817e754f132357af47f7 (patch) | |
tree | b42a44eb4bc2a1b31752c5e654e72a2f09f4dc3f /Command/WebApp.hs | |
parent | 19a173cfadf0cdccbe371772d341a75642dc6273 (diff) |
nub the autostart file
It's possible for the file to get duplicate lines in it, and if so, we want
to ignore the dups.
Diffstat (limited to 'Command/WebApp.hs')
-rw-r--r-- | Command/WebApp.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/WebApp.hs b/Command/WebApp.hs index 205e36341..f87ea983a 100644 --- a/Command/WebApp.hs +++ b/Command/WebApp.hs @@ -75,7 +75,7 @@ startNoRepo = do autoStart :: FilePath -> IO () autoStart autostartfile = do - dirs <- lines <$> readFile autostartfile + dirs <- nub . lines <$> readFile autostartfile edirs <- filterM doesDirectoryExist dirs case edirs of [] -> firstRun -- what else can I do? Nothing works.. |