Paying attentioon helps

This commit is contained in:
Nox Sluijtman 2023-07-31 20:22:34 +02:00
parent f9325d02c9
commit fdf0f88dea

View file

@ -47,8 +47,8 @@ parseArgs (Args t dir h v r c) = do
mkIndex :: Bool -> FilePath -> FilePath -> IO ()
mkIndex True d l = do
line <- readFile $ d++"/"++l
putStrLn $ "=> " ++ path ++ (head . lines $ line)
line <- head . lines <$> readFile path
putStrLn $ "=> " ++ path ++ line
where path = d++"/"++l++" "
mkIndex False d l = putStrLn $ "=> " ++ path