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.
This commit is contained in:
parent
04a69b22b1
commit
51ef707a59
3 changed files with 3 additions and 3 deletions
|
@ -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..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue