couple path separator fixes

This commit is contained in:
Joey Hess 2013-06-18 14:08:35 -04:00
parent a1f8771d2b
commit 8063d68b02

View file

@ -1102,13 +1102,13 @@ tmpdir :: String
tmpdir = ".t"
mainrepodir :: FilePath
mainrepodir = tmpdir ++ "/repo"
mainrepodir = tmpdir </> "repo"
tmprepodir :: IO FilePath
tmprepodir = go (0 :: Int)
where
go n = do
let d = tmpdir ++ "/tmprepo" ++ show n
let d = tmpdir </> "tmprepo" ++ show n
ifM (doesDirectoryExist d)
( go $ n + 1
, return d